]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/ruutu.py
[adobepass] Add MSO Sling TV (#596)
[yt-dlp.git] / yt_dlp / extractor / ruutu.py
index f9f30e3dd2cf6b8dcff90fddd8398a378f3d1b67..6a78441ef8963390eaed0df87e2ac5c4757544b0 100644 (file)
@@ -200,9 +200,9 @@ def pv(name):
                 return node.get('value')
 
         if not formats:
-            if (not self._downloader.params.get('allow_unplayable_formats')
+            if (not self.get_param('allow_unplayable_formats')
                     and xpath_text(video_xml, './Clip/DRM', default=None)):
-                raise ExtractorError('This video is DRM protected.', expected=True)
+                self.raise_no_formats('This video is DRM protected.', expected=True)
             ns_st_cds = pv('ns_st_cds')
             if ns_st_cds != 'free':
                 raise ExtractorError('This video is %s.' % ns_st_cds, expected=True)