From 8eec0120a22584bb2533230a15caaaa4088ea2a8 Mon Sep 17 00:00:00 2001 From: nixxo Date: Sat, 13 Mar 2021 16:38:50 +0100 Subject: [PATCH] [rai] fix drm check (#168) Bug introduced by #150 Authored by: nixxo --- yt_dlp/extractor/rai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/rai.py b/yt_dlp/extractor/rai.py index d09b4a735..6c2191bb3 100644 --- a/yt_dlp/extractor/rai.py +++ b/yt_dlp/extractor/rai.py @@ -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'],