[youtube] Fix DRM videos detection (refs #24736)

This commit is contained in:
Sergey M․ 2020-04-11 23:05:08 +07:00
parent 2f19835726
commit 00eb865b3c
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -1930,7 +1930,7 @@ def _extract_filesize(media_url):
} }
for fmt in streaming_formats: for fmt in streaming_formats:
if fmt.get('drm_families'): if fmt.get('drmFamilies') or fmt.get('drm_families'):
continue continue
url = url_or_none(fmt.get('url')) url = url_or_none(fmt.get('url'))