mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-09-03 00:25:08 +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:
@ -15,12 +15,12 @@ class PerformGroupIE(InfoExtractor):
|
||||
'description': 'md5:7cd3b459c82725b021e046ab10bf1c5b',
|
||||
'timestamp': 1511533477,
|
||||
'upload_date': '20171124',
|
||||
}
|
||||
},
|
||||
}]
|
||||
|
||||
def _call_api(self, service, auth_token, content_id, referer_url):
|
||||
return self._download_json(
|
||||
'http://ep3.performfeeds.com/ep%s/%s/%s/' % (service, auth_token, content_id),
|
||||
f'http://ep3.performfeeds.com/ep{service}/{auth_token}/{content_id}/',
|
||||
content_id, headers={
|
||||
'Referer': referer_url,
|
||||
'Origin': 'http://player.performgroup.com',
|
||||
@ -52,7 +52,7 @@ class PerformGroupIE(InfoExtractor):
|
||||
tbr = int_or_none(c.get('bitrate'), 1000)
|
||||
format_id = 'http'
|
||||
if tbr:
|
||||
format_id += '-%d' % tbr
|
||||
format_id += f'-{tbr}'
|
||||
formats.append({
|
||||
'format_id': format_id,
|
||||
'url': c_url,
|
||||
|
Reference in New Issue
Block a user