diff options
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, |