A feature-rich command-line audio/video downloader
[limelight] Obey `allow_unplayable_formats`
pukkandanb982cbdd0e83
diff --git a/yt_dlp/extractor/limelight.py b/yt_dlp/extractor/limelight.pyindex c0c35511fa..d1f0edc6bd 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)):continueurls.append(media_url)ext = determine_ext(media_url)