]> jfr.im git - yt-dlp.git/commitdiff
[rai] fix drm check (#168)
authornixxo <redacted>
Sat, 13 Mar 2021 15:38:50 +0000 (16:38 +0100)
committerGitHub <redacted>
Sat, 13 Mar 2021 15:38:50 +0000 (21:08 +0530)
Bug introduced by #150
Authored by: nixxo

yt_dlp/extractor/rai.py

index d09b4a735707046ef98262d90d19df705f57fbff..6c2191bb31acee2fc9375e9ebe5c8534c78aed74 100644 (file)
@@ -170,7 +170,7 @@ def _real_extract(self, url):
         media = self._download_json(
             base + '.json', video_id, 'Downloading video JSON')
 
-        if not self.params.get('allow_unplayable_formats'):
+        if not self._downloader.params.get('allow_unplayable_formats'):
             if try_get(
                     media,
                     (lambda x: x['rights_management']['rights']['drm'],