diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:10 +0000 |
commit | 7e21328585afda6d66f98ca476301680eeffac32 (patch) | |
tree | 266a4e7b20443f94572748781d71fc0375a15037 /yt_dlp/extractor/coub.py | |
parent | Adding upstream version 2024.05.27. (diff) | |
download | yt-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 'yt_dlp/extractor/coub.py')
-rw-r--r-- | yt_dlp/extractor/coub.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/extractor/coub.py b/yt_dlp/extractor/coub.py index 9bab698..95ad665 100644 --- a/yt_dlp/extractor/coub.py +++ b/yt_dlp/extractor/coub.py @@ -44,11 +44,11 @@ class CoubIE(InfoExtractor): video_id = self._match_id(url) coub = self._download_json( - 'http://coub.com/api/v2/coubs/%s.json' % video_id, video_id) + f'http://coub.com/api/v2/coubs/{video_id}.json', video_id) if coub.get('error'): raise ExtractorError( - '%s said: %s' % (self.IE_NAME, coub['error']), expected=True) + '{} said: {}'.format(self.IE_NAME, coub['error']), expected=True) title = coub['title'] @@ -80,7 +80,7 @@ class CoubIE(InfoExtractor): continue formats.append({ 'url': item_url, - 'format_id': '%s-%s-%s' % (HTML5, kind, quality), + 'format_id': f'{HTML5}-{kind}-{quality}', 'filesize': int_or_none(item.get('size')), 'vcodec': 'none' if kind == 'audio' else None, 'acodec': 'none' if kind == 'video' else None, @@ -100,7 +100,7 @@ class CoubIE(InfoExtractor): if mobile_url: formats.append({ 'url': mobile_url, - 'format_id': '%s-audio' % MOBILE, + 'format_id': f'{MOBILE}-audio', 'source_preference': preference_key(MOBILE), }) |