diff options
author | pukkandan <pukkandan@gmail.com> | 2021-02-12 10:04:04 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-02-12 20:32:49 +0530 |
commit | 068693675ef45c6f0b752c53d8810193d33dc712 (patch) | |
tree | 9c7093d8610a1be34290fc7f74799ccc36feb590 /youtube_dlc/extractor/limelight.py | |
parent | 1ea241292770c6027b951aa045e00eadd140b9f5 (diff) | |
download | hypervideo-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.py | 4 |
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) |