From 16a676880c722572b0ed8c1d551befcafffff456 Mon Sep 17 00:00:00 2001 From: Victor Beek Date: Tue, 6 Feb 2018 08:01:52 +0000 Subject: [PATCH] Match new items in additionalChannels on title instead of url --- nederland24.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nederland24.py b/nederland24.py index 627734a..b30c78b 100644 --- a/nederland24.py +++ b/nederland24.py @@ -186,7 +186,7 @@ def additionalChannels(feed_url, depth): title = tag.title.contents[0] tag_url = tag.find('media:content')['url'] img = os.path.join(IMG_DIR, "npo_placeholder.png") - if not any(tag_url == item.url for item in items_to_add): + if not any(title == item.title for item in items_to_add): items_to_add.append(Feed(title, tag_url, img)) i += 1 if i == int(depth):