[rai] fix drm check (#168)

Bug introduced by #150
Authored by: nixxo
This commit is contained in:
nixxo 2021-03-13 16:38:50 +01:00 committed by GitHub
parent 4cf1e5d2f9
commit 8eec0120a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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'],