Skip to content

Commit

Permalink
fix playlist crashing with duplicate videos
Browse files Browse the repository at this point in the history
  • Loading branch information
willforde committed Nov 2, 2018
1 parent 4cb44c0 commit bacb278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.module.codequick/lib/codequick/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def request_videos(self, ids):
:type ids: list
"""
cached_videos = self.db.extract_videos(ids)
uncached_ids = [key for key in ids if key not in cached_videos] # pragma: no branch
uncached_ids = list(frozenset(key for key in ids if key not in cached_videos)) # pragma: no branch
if uncached_ids:
# Fetch video information
feed = self.api.videos(uncached_ids)
Expand Down

0 comments on commit bacb278

Please sign in to comment.