[youtube] Fix DRM videos detection (refs #24736)
[youtube-dl] / 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'))