diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:11 +0000 |
commit | fd5a06560caab95c71a2e2e805efa8d0f3a696a0 (patch) | |
tree | e1c600b8612bc4b301e2f51b875fcd835c5008cc /yt_dlp/extractor/tvigle.py | |
parent | Releasing progress-linux version 2024.05.27-1~progress7.99u1. (diff) | |
download | yt-dlp-fd5a06560caab95c71a2e2e805efa8d0f3a696a0.tar.xz yt-dlp-fd5a06560caab95c71a2e2e805efa8d0f3a696a0.zip |
Merging upstream version 2024.07.01.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'yt_dlp/extractor/tvigle.py')
-rw-r--r-- | yt_dlp/extractor/tvigle.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/extractor/tvigle.py b/yt_dlp/extractor/tvigle.py index 6c98219..6b87eca 100644 --- a/yt_dlp/extractor/tvigle.py +++ b/yt_dlp/extractor/tvigle.py @@ -46,7 +46,7 @@ class TvigleIE(InfoExtractor): }, { 'url': 'https://cloud.tvigle.ru/video/5267604/', 'only_matching': True, - } + }, ] def _real_extract(self, url): @@ -63,7 +63,7 @@ class TvigleIE(InfoExtractor): webpage, 'video id') video_data = self._download_json( - 'http://cloud.tvigle.ru/api/play/video/%s/' % video_id, display_id) + f'http://cloud.tvigle.ru/api/play/video/{video_id}/', display_id) item = video_data['playlist']['items'][0] @@ -76,7 +76,7 @@ class TvigleIE(InfoExtractor): msg=error_message, countries=self._GEO_COUNTRIES) else: raise ExtractorError( - '%s returned error: %s' % (self.IE_NAME, error_message), + f'{self.IE_NAME} returned error: {error_message}', expected=True) title = item['title'] @@ -115,7 +115,7 @@ class TvigleIE(InfoExtractor): item, lambda x: x['video_files_size'][vcodec][format_id])) formats.append({ 'url': video_url, - 'format_id': '%s-%s' % (vcodec, format_id), + 'format_id': f'{vcodec}-{format_id}', 'vcodec': vcodec, 'height': int_or_none(height), 'filesize': filesize, |