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

Do full resync for playlist items

This commit is contained in:
Maksym Pavlenko
2019-05-28 12:53:32 -07:00
parent 87782c1639
commit 6296a2bb56

View File

@@ -152,7 +152,7 @@ func (s *Service) BuildFeed(hashID string) ([]byte, error) {
}
// Submit to SQS for background update
s.sender.Add(&queue.Item{
item := &queue.Item{
ID: feed.HashID,
URL: feed.ItemURL,
Start: 1,
@@ -160,7 +160,16 @@ func (s *Service) BuildFeed(hashID string) ([]byte, error) {
LastID: feed.LastID,
Format: string(feed.Format),
Quality: string(feed.Quality),
})
}
if feed.LinkType == api.LinkTypePlaylist {
// Playlist is a special case. Last ID tracks a latest episode on a channel,
// it appears as the first one in the list. New playlist items are added to
// the end of list, so sync with last seen ID doesn't work here as expected.
item.LastID = ""
}
s.sender.Add(item)
// Output the feed