mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-09-17 00:01:43 +00:00
[cleanup] Add more ruff rules (#10149)
Authored by: seproDev Reviewed-by: bashonly <[email protected]> Reviewed-by: Simon Sawicki <[email protected]>
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