1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Add itunes:order tag

This commit is contained in:
Maksym Pavlenko
2017-11-07 13:38:14 -08:00
parent 13933571a0
commit 807be4287d

View File

@ -3,6 +3,7 @@ package builders
import ( import (
"fmt" "fmt"
"net/http" "net/http"
"strconv"
"strings" "strings"
"time" "time"
@ -281,6 +282,8 @@ func (yt *YouTubeBuilder) queryVideoDescriptions(playlistItems map[string]*youtu
item.Description = " " item.Description = " "
} }
item.IOrder = strconv.FormatInt(playlistItem.Position, 10)
_, err = podcast.AddItem(item) _, err = podcast.AddItem(item)
if err != nil { if err != nil {
return errors.Wrapf(err, "failed to add item to podcast (id '%s')", video.Id) return errors.Wrapf(err, "failed to add item to podcast (id '%s')", video.Id)