[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:
parent
db50f19d76
commit
add96eb9f8
915 changed files with 7028 additions and 7247 deletions
|
|
@ -42,7 +42,7 @@ class R7IE(InfoExtractor):
|
|||
video_id = self._match_id(url)
|
||||
|
||||
video = self._download_json(
|
||||
'http://player-api.r7.com/video/i/%s' % video_id, video_id)
|
||||
f'http://player-api.r7.com/video/i/{video_id}', video_id)
|
||||
|
||||
title = video['title']
|
||||
|
||||
|
|
@ -98,7 +98,7 @@ class R7ArticleIE(InfoExtractor):
|
|||
|
||||
@classmethod
|
||||
def suitable(cls, url):
|
||||
return False if R7IE.suitable(url) else super(R7ArticleIE, cls).suitable(url)
|
||||
return False if R7IE.suitable(url) else super().suitable(url)
|
||||
|
||||
def _real_extract(self, url):
|
||||
display_id = self._match_id(url)
|
||||
|
|
@ -109,4 +109,4 @@ class R7ArticleIE(InfoExtractor):
|
|||
r'<div[^>]+(?:id=["\']player-|class=["\']embed["\'][^>]+id=["\'])([\da-f]{24})',
|
||||
webpage, 'video id')
|
||||
|
||||
return self.url_result('http://player.r7.com/video/i/%s' % video_id, R7IE.ie_key())
|
||||
return self.url_result(f'http://player.r7.com/video/i/{video_id}', R7IE.ie_key())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue