]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[youtube] Fix DRM videos detection (refs #24736)
authorSergey M․ <dstftw@gmail.com>
Sat, 11 Apr 2020 16:05:08 +0000 (23:05 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 11 Apr 2020 16:05:08 +0000 (23:05 +0700)
youtube_dl/extractor/youtube.py

index 633b839e0bb5f992ae98adbdc31fb01968e035f7..afaa12b1bff34f63603dd55253a2b53301a9f238 100644 (file)
@@ -1930,7 +1930,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                 }
 
             for fmt in streaming_formats:
-                if fmt.get('drm_families'):
+                if fmt.get('drmFamilies') or fmt.get('drm_families'):
                     continue
                 url = url_or_none(fmt.get('url'))