mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-29 21:57:50 +00:00
[cleanup] Add more ruff rules (#10149)
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
This commit is contained in:
@@ -16,10 +16,10 @@ class CommonMistakesIE(InfoExtractor):
|
||||
|
||||
def _real_extract(self, url):
|
||||
msg = (
|
||||
'You\'ve asked yt-dlp to download the URL "%s". '
|
||||
f'You\'ve asked yt-dlp to download the URL "{url}". '
|
||||
'That doesn\'t make any sense. '
|
||||
'Simply remove the parameter in your command or configuration.'
|
||||
) % url
|
||||
)
|
||||
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)
|
||||
@@ -38,7 +38,7 @@ class UnicodeBOMIE(InfoExtractor):
|
||||
real_url = self._match_id(url)
|
||||
self.report_warning(
|
||||
'Your URL starts with a Byte Order Mark (BOM). '
|
||||
'Removing the BOM and looking for "%s" ...' % real_url)
|
||||
f'Removing the BOM and looking for "{real_url}" ...')
|
||||
return self.url_result(real_url)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user