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 | 137f07c27a88b07df57df5b2cdebebe3c7722bac (patch) | |
tree | 4ebdcbea6b540f69c40ba0be6ac766008030d149 /yt_dlp/extractor/telegraaf.py | |
parent | Adding debian version 2024.05.27-1. (diff) | |
download | yt-dlp-137f07c27a88b07df57df5b2cdebebe3c7722bac.tar.xz yt-dlp-137f07c27a88b07df57df5b2cdebebe3c7722bac.zip |
Merging upstream version 2024.07.01.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'yt_dlp/extractor/telegraaf.py')
-rw-r--r-- | yt_dlp/extractor/telegraaf.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/extractor/telegraaf.py b/yt_dlp/extractor/telegraaf.py index 13e9515..c0bcdc2 100644 --- a/yt_dlp/extractor/telegraaf.py +++ b/yt_dlp/extractor/telegraaf.py @@ -40,11 +40,11 @@ class TelegraafIE(InfoExtractor): videoId } } -}''' % article_id, +}''' % article_id, # noqa: UP031 })['data']['article']['videos'][0]['videoId'] item = self._download_json( - 'https://content.tmgvideo.nl/playlist/item=%s/playlist.json' % video_id, + f'https://content.tmgvideo.nl/playlist/item={video_id}/playlist.json', video_id)['items'][0] title = item['title'] @@ -62,7 +62,7 @@ class TelegraafIE(InfoExtractor): formats.extend(self._extract_mpd_formats( manifest_url, video_id, mpd_id='dash', fatal=False)) else: - self.report_warning('Unknown adaptive format %s' % ext) + self.report_warning(f'Unknown adaptive format {ext}') for location in locations.get('progressive', []): src = try_get(location, lambda x: x['sources'][0]['src']) if not src: @@ -72,7 +72,7 @@ class TelegraafIE(InfoExtractor): 'url': src, 'width': int_or_none(location.get('width')), 'height': int_or_none(location.get('height')), - 'format_id': 'http' + ('-%s' % label if label else ''), + 'format_id': 'http' + (f'-{label}' if label else ''), }) return { |