aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/extractor/limelight.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-02-12 10:04:04 +0530
committerpukkandan <pukkandan@gmail.com>2021-02-12 20:32:49 +0530
commit068693675ef45c6f0b752c53d8810193d33dc712 (patch)
tree9c7093d8610a1be34290fc7f74799ccc36feb590 /youtube_dlc/extractor/limelight.py
parent1ea241292770c6027b951aa045e00eadd140b9f5 (diff)
downloadhypervideo-pre-068693675ef45c6f0b752c53d8810193d33dc712.tar.lz
hypervideo-pre-068693675ef45c6f0b752c53d8810193d33dc712.tar.xz
hypervideo-pre-068693675ef45c6f0b752c53d8810193d33dc712.zip
Cleanup some code and fix typos
:ci skip dl
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)