]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/toutv.py
[extractor] Add `write_debug` and `get_param`
[yt-dlp.git] / yt_dlp / extractor / toutv.py
index aba87051a00c3caa35d18c96c43c59544223c29d..6c84c211c97e824045f896f48f2ea392b4132d6d 100644 (file)
@@ -74,7 +74,7 @@ def _real_extract(self, url):
             })
         # IsDrm does not necessarily mean the video is DRM protected (see
         # https://github.com/ytdl-org/youtube-dl/issues/13994).
-        if not self._downloader.params.get('allow_unplayable_formats') and metadata.get('IsDrm'):
+        if not self.get_param('allow_unplayable_formats') and metadata.get('IsDrm'):
             self.report_warning('This video is probably DRM protected.', path)
         video_id = metadata['IdMedia']
         details = metadata['Details']