From b982cbdd0e83451b42dca8f7e59b40344b7ecf2b Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 26 Apr 2021 10:46:26 +0530 Subject: [PATCH] [limelight] Obey `allow_unplayable_formats` --- yt_dlp/extractor/limelight.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/limelight.py b/yt_dlp/extractor/limelight.py index c0c35511f..d1f0edc6b 100644 --- a/yt_dlp/extractor/limelight.py +++ b/yt_dlp/extractor/limelight.py @@ -160,7 +160,10 @@ class LimelightBaseIE(InfoExtractor): for mobile_url in mobile_item.get('mobileUrls', []): media_url = mobile_url.get('mobileUrl') format_id = mobile_url.get('targetMediaPlatform') - if not media_url or format_id in ('Widevine', 'SmoothStreaming') or media_url in urls: + if not media_url or media_url in urls: + continue + if (format_id in ('Widevine', 'SmoothStreaming') + and not self._downloader.params.get('allow_unplayable_formats', False)): continue urls.append(media_url) ext = determine_ext(media_url)