1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-19 22:48:53 +00:00

Remove allow-u from extractors

This commit is contained in:
Simon Sawicki
2024-12-20 21:53:33 +01:00
parent 6e7072c53a
commit ec8b22b1c1
19 changed files with 48 additions and 35 deletions

View File

@@ -236,7 +236,7 @@ class HotStarIE(HotStarBaseIE):
self._call_api_v1(
f'{video_type}/detail', video_id, fatal=False, query={'tas': 10000, 'contentId': video_id}),
('body', 'results', 'item', {dict})) or {}
if not self.get_param('allow_unplayable_formats') and video_data.get('drmProtected'):
if video_data.get('drmProtected'):
self.report_drm(video_id)
# See https://github.com/yt-dlp/yt-dlp/issues/396