X-Git-Url: https://jfr.im/git/yt-dlp.git/blobdiff_plain/86e5f3ed2e6e71eb81ea4c9e26288f16119ffd0c..61edf57f8f13f6dfd81154174e647eb5fdd26089:/yt_dlp/extractor/presstv.py diff --git a/yt_dlp/extractor/presstv.py b/yt_dlp/extractor/presstv.py index 26ce74a59..30eb64b90 100644 --- a/yt_dlp/extractor/presstv.py +++ b/yt_dlp/extractor/presstv.py @@ -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 @@ def _real_extract(self, url): (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 @@ def _real_extract(self, url): 'formats': formats, 'thumbnail': thumbnail, 'upload_date': upload_date, - 'description': description + 'description': description, }