[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:
sepro
2024-06-12 01:09:58 +02:00
committed by GitHub
parent db50f19d76
commit add96eb9f8
915 changed files with 7027 additions and 7246 deletions

View File

@@ -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,