Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Match new items in additionalChannels on title instead of url
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Beek committed May 10, 2018
1 parent 6e14457 commit 16a6768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nederland24.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 16a6768

Please sign in to comment.