mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-11-14 21:45:15 +00:00
Cleanup some code and fix typos
:ci skip dl
This commit is contained in:
@@ -36,7 +36,8 @@ class NineCNineMediaIE(InfoExtractor):
|
||||
'$include': '[HasClosedCaptions]',
|
||||
})
|
||||
|
||||
if not self._downloader.params.get('allow_unplayable_formats') and try_get(content_package, lambda x: x['Constraints']['Security']['Type']):
|
||||
if (not self._downloader.params.get('allow_unplayable_formats')
|
||||
and try_get(content_package, lambda x: x['Constraints']['Security']['Type'])):
|
||||
raise ExtractorError('This video is DRM protected.', expected=True)
|
||||
|
||||
manifest_base_url = content_package_url + 'manifest.'
|
||||
|
||||
Reference in New Issue
Block a user