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

Don't publish not yet downloaded episodes #75 #67

This commit is contained in:
Maksym Pavlenko
2020-01-25 16:11:35 -08:00
committed by Maksym Pavlenko
parent 163976a570
commit c6aa18c748

View File

@@ -263,6 +263,11 @@ func (u *Updater) buildPodcast(feed *model.Feed, cfg *config.Feed) (*itunes.Podc
}
for i, episode := range feed.Episodes {
if episode.Status != model.EpisodeDownloaded {
// Skip episodes that are not yet downloaded
continue
}
item := itunes.Item{
GUID: episode.ID,
Link: episode.VideoURL,