mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-21 17:58:41 +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:
@@ -102,7 +102,7 @@ class YandexDiskIE(InfoExtractor):
|
||||
'format_id': 'source',
|
||||
'ext': determine_ext(title, meta.get('ext') or mimetype2ext(meta.get('mime_type')) or 'mp4'),
|
||||
'quality': 1,
|
||||
'filesize': int_or_none(meta.get('size'))
|
||||
'filesize': int_or_none(meta.get('size')),
|
||||
})
|
||||
|
||||
for video in (video_streams.get('videos') or []):
|
||||
@@ -118,7 +118,7 @@ class YandexDiskIE(InfoExtractor):
|
||||
height = int_or_none(size.get('height'))
|
||||
format_id = 'hls'
|
||||
if height:
|
||||
format_id += '-%dp' % height
|
||||
format_id += f'-{height}p'
|
||||
formats.append({
|
||||
'ext': 'mp4',
|
||||
'format_id': format_id,
|
||||
|
Reference in New Issue
Block a user