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:
@ -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)
|
||||||
|
Reference in New Issue
Block a user