mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-11-02 15:45: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:
@@ -30,7 +30,7 @@ class GodTubeIE(InfoExtractor):
|
||||
video_id = mobj.group('id')
|
||||
|
||||
config = self._download_xml(
|
||||
'http://www.godtube.com/resource/mediaplayer/%s.xml' % video_id.lower(),
|
||||
f'http://www.godtube.com/resource/mediaplayer/{video_id.lower()}.xml',
|
||||
video_id, 'Downloading player config XML')
|
||||
|
||||
video_url = config.find('file').text
|
||||
@@ -40,7 +40,7 @@ class GodTubeIE(InfoExtractor):
|
||||
thumbnail = config.find('image').text
|
||||
|
||||
media = self._download_xml(
|
||||
'http://www.godtube.com/media/xml/?v=%s' % video_id, video_id, 'Downloading media XML')
|
||||
f'http://www.godtube.com/media/xml/?v={video_id}', video_id, 'Downloading media XML')
|
||||
|
||||
title = media.find('title').text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user