mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-24 19:28:42 +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:
@@ -23,7 +23,7 @@ class ClippitIE(InfoExtractor):
|
||||
'upload_date': '20160826',
|
||||
'description': 'BattleBots | ABC',
|
||||
'thumbnail': r're:^https?://.*\.jpg$',
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
def _real_extract(self, url):
|
||||
@@ -36,7 +36,7 @@ class ClippitIE(InfoExtractor):
|
||||
quality = qualities(FORMATS)
|
||||
formats = []
|
||||
for format_id in FORMATS:
|
||||
url = self._html_search_regex(r'data-%s-file="(.+?)"' % format_id,
|
||||
url = self._html_search_regex(rf'data-{format_id}-file="(.+?)"',
|
||||
webpage, 'url', fatal=False)
|
||||
if not url:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user