]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/commonmistakes.py
[extractor] Add `write_debug` and `get_param`
[yt-dlp.git] / yt_dlp / extractor / commonmistakes.py
index 1a5dcbd8b252ea46a41667905ef55ddfb535254e..05126965233f5f5502df095fd1099bf2053db16e 100644 (file)
@@ -26,7 +26,7 @@ def _real_extract(self, url):
             'That doesn\'t make any sense. '
             'Simply remove the parameter in your command or configuration.'
         ) % url
-        if not self._downloader.params.get('verbose'):
+        if not self.get_param('verbose'):
             msg += ' Add -v to the command line to see what arguments and configuration yt-dlp has'
         raise ExtractorError(msg, expected=True)