1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-31 22:55: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:
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

@@ -15,8 +15,8 @@ class PressTVIE(InfoExtractor):
'title': 'Organic mattresses used to clean waste water',
'upload_date': '20160409',
'thumbnail': r're:^https?://.*\.jpg',
'description': 'md5:20002e654bbafb6908395a5c0cfcd125'
}
'description': 'md5:20002e654bbafb6908395a5c0cfcd125',
},
}
def _real_extract(self, url):
@@ -36,12 +36,12 @@ class PressTVIE(InfoExtractor):
(180, '_low200.mp4'),
(360, '_low400.mp4'),
(720, '_low800.mp4'),
(1080, '.mp4')
(1080, '.mp4'),
]
formats = [{
'url': base_url + video_url[:-4] + extension,
'format_id': '%dp' % height,
'format_id': f'{height}p',
'height': height,
} for height, extension in _formats]
@@ -65,5 +65,5 @@ class PressTVIE(InfoExtractor):
'formats': formats,
'thumbnail': thumbnail,
'upload_date': upload_date,
'description': description
'description': description,
}