summaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/presstv.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:10 +0000
commit7e21328585afda6d66f98ca476301680eeffac32 (patch)
tree266a4e7b20443f94572748781d71fc0375a15037 /yt_dlp/extractor/presstv.py
parentAdding upstream version 2024.05.27. (diff)
downloadyt-dlp-7e21328585afda6d66f98ca476301680eeffac32.tar.xz
yt-dlp-7e21328585afda6d66f98ca476301680eeffac32.zip
Adding upstream version 2024.07.01.upstream/2024.07.01
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--yt_dlp/extractor/presstv.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/yt_dlp/extractor/presstv.py b/yt_dlp/extractor/presstv.py
index 26ce74a..30eb64b 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 @@ 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,
}