From a06916d98e1669f9b7d821bcb3ca6d13bd6429fe Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 17 May 2021 17:53:08 +0530 Subject: [extractor] Add `write_debug` and `get_param` --- yt_dlp/extractor/globo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yt_dlp/extractor/globo.py') diff --git a/yt_dlp/extractor/globo.py b/yt_dlp/extractor/globo.py index 3dbe759be..dd8fae536 100644 --- a/yt_dlp/extractor/globo.py +++ b/yt_dlp/extractor/globo.py @@ -96,7 +96,7 @@ class GloboIE(InfoExtractor): video = self._download_json( 'http://api.globovideos.com/videos/%s/playlist' % video_id, video_id)['videos'][0] - if not self._downloader.params.get('allow_unplayable_formats') and video.get('encrypted') is True: + if not self.get_param('allow_unplayable_formats') and video.get('encrypted') is True: raise ExtractorError('This video is DRM protected.', expected=True) title = video['title'] -- cgit v1.2.3