mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-19 06:28:52 +00:00
Remove allow-u from extractors
This commit is contained in:
@@ -140,13 +140,14 @@ class IviIE(InfoExtractor):
|
||||
quality = qualities(self._KNOWN_FORMATS)
|
||||
|
||||
formats = []
|
||||
has_drm = False
|
||||
for f in result.get('files', []):
|
||||
f_url = f.get('url')
|
||||
content_format = f.get('content_format')
|
||||
if not f_url:
|
||||
continue
|
||||
if (not self.get_param('allow_unplayable_formats')
|
||||
and ('-MDRM-' in content_format or '-FPS-' in content_format)):
|
||||
if '-MDRM-' in content_format or '-FPS-' in content_format:
|
||||
has_drm = True
|
||||
continue
|
||||
formats.append({
|
||||
'url': f_url,
|
||||
@@ -154,6 +155,8 @@ class IviIE(InfoExtractor):
|
||||
'quality': quality(content_format),
|
||||
'filesize': int_or_none(f.get('size_in_bytes')),
|
||||
})
|
||||
if not formats and has_drm:
|
||||
self.report_drm(video_id)
|
||||
|
||||
compilation = result.get('compilation')
|
||||
episode = title if compilation else None
|
||||
|
||||
Reference in New Issue
Block a user