rss: ensure atleast one tvdb or imdb id is present
This commit is contained in:
@@ -112,10 +112,7 @@ func (j *rssJob) getFeed() ([]media.FeedItem, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// validate item
|
// validate item
|
||||||
switch {
|
if (b.Channel.Items[p].TvdbId == "" || b.Channel.Items[p].TvdbId == "0") && b.Channel.Items[p].ImdbId == "" {
|
||||||
case b.Channel.Items[p].TvdbId == "", b.Channel.Items[p].TvdbId == "0":
|
|
||||||
continue
|
|
||||||
case b.Channel.Items[p].ImdbId == "":
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user