Skip to content

Commit

Permalink
Don't publish not yet downloaded episodes #75 #67
Browse files Browse the repository at this point in the history
  • Loading branch information
mxpv committed Jan 30, 2020
1 parent 6bbccc3 commit 095dc69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/podsync/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 095dc69

Please sign in to comment.