mirror of
https://github.com/LucBerge/yt-dlp.git
synced 2025-03-17 19:57:52 +03:00
[cleanup, utils] Don't use kwargs for format_field
This commit is contained in:
parent
e121e3cee7
commit
a70635b8a1
25 changed files with 32 additions and 32 deletions
|
@ -1050,7 +1050,7 @@ class InfoExtractor:
|
|||
self._sleep(timeout, video_id)
|
||||
|
||||
def report_warning(self, msg, video_id=None, *args, only_once=False, **kwargs):
|
||||
idstr = format_field(video_id, template='%s: ')
|
||||
idstr = format_field(video_id, None, '%s: ')
|
||||
msg = f'[{self.IE_NAME}] {idstr}{msg}'
|
||||
if only_once:
|
||||
if f'WARNING: {msg}' in self._printed_messages:
|
||||
|
@ -1096,7 +1096,7 @@ class InfoExtractor:
|
|||
self.get_param('ignore_no_formats_error') or self.get_param('wait_for_video')):
|
||||
self.report_warning(msg)
|
||||
return
|
||||
msg += format_field(self._login_hint(method), template='. %s')
|
||||
msg += format_field(self._login_hint(method), None, '. %s')
|
||||
raise ExtractorError(msg, expected=True)
|
||||
|
||||
def raise_geo_restricted(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue