aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/extractor/limelight.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dlc/extractor/limelight.py')
-rw-r--r--youtube_dlc/extractor/limelight.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dlc/extractor/limelight.py b/youtube_dlc/extractor/limelight.py
index 6592f60da..b95b001ad 100644
--- a/youtube_dlc/extractor/limelight.py
+++ b/youtube_dlc/extractor/limelight.py
@@ -96,7 +96,9 @@ class LimelightBaseIE(InfoExtractor):
urls = []
for stream in pc_item.get('streams', []):
stream_url = stream.get('url')
- if not stream_url or (not self._downloader.params.get('allow_unplayable_formats') and stream.get('drmProtected')) or stream_url in urls:
+ if not stream_url or stream_url in urls:
+ continue
+ if not self._downloader.params.get('allow_unplayable_formats') and stream.get('drmProtected'):
continue
urls.append(stream_url)
ext = determine_ext(stream_url)