]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/globo.py
[adobepass] Add MSO Sling TV (#596)
[yt-dlp.git] / yt_dlp / extractor / globo.py
index 3dbe759be3c8cfb944e95cc8666621241e995280..dd8fae5366903811b2a230a9f204b71a95a7a57e 100644 (file)
@@ -96,7 +96,7 @@ def _real_extract(self, url):
         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']