From b227f94d997fddb5e12c7b8297a25952eaddfd0f Mon Sep 17 00:00:00 2001 From: James Bayliss Date: Sun, 14 Feb 2021 20:26:02 +0000 Subject: [PATCH] rss: ensure atleast one tvdb or imdb id is present --- rss/process.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rss/process.go b/rss/process.go index 16ebef8..9ca2828 100644 --- a/rss/process.go +++ b/rss/process.go @@ -112,10 +112,7 @@ func (j *rssJob) getFeed() ([]media.FeedItem, error) { } // validate item - switch { - case b.Channel.Items[p].TvdbId == "", b.Channel.Items[p].TvdbId == "0": - continue - case b.Channel.Items[p].ImdbId == "": + if (b.Channel.Items[p].TvdbId == "" || b.Channel.Items[p].TvdbId == "0") && b.Channel.Items[p].ImdbId == "" { continue }