mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-09 01:35:18 +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:
@@ -33,7 +33,7 @@ class GazetaIE(InfoExtractor):
|
||||
mobj = self._match_valid_url(url)
|
||||
|
||||
display_id = mobj.group('id')
|
||||
embed_url = '%s?p=embed' % mobj.group('url')
|
||||
embed_url = '{}?p=embed'.format(mobj.group('url'))
|
||||
embed_page = self._download_webpage(
|
||||
embed_url, display_id, 'Downloading embed page')
|
||||
|
||||
@@ -41,4 +41,4 @@ class GazetaIE(InfoExtractor):
|
||||
r'<div[^>]*?class="eagleplayer"[^>]*?data-id="([^"]+)"', embed_page, 'video id')
|
||||
|
||||
return self.url_result(
|
||||
'eagleplatform:gazeta.media.eagleplatform.com:%s' % video_id, 'EaglePlatform')
|
||||
f'eagleplatform:gazeta.media.eagleplatform.com:{video_id}', 'EaglePlatform')
|
||||
|
||||
Reference in New Issue
Block a user