summaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/dfb.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:11 +0000
commitfd5a06560caab95c71a2e2e805efa8d0f3a696a0 (patch)
treee1c600b8612bc4b301e2f51b875fcd835c5008cc /yt_dlp/extractor/dfb.py
parentReleasing progress-linux version 2024.05.27-1~progress7.99u1. (diff)
downloadyt-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 '')
-rw-r--r--yt_dlp/extractor/dfb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/dfb.py b/yt_dlp/extractor/dfb.py
index c4fb5c2..b397ed9 100644
--- a/yt_dlp/extractor/dfb.py
+++ b/yt_dlp/extractor/dfb.py
@@ -22,7 +22,7 @@ class DFBIE(InfoExtractor):
display_id, video_id = self._match_valid_url(url).groups()
player_info = self._download_xml(
- 'http://tv.dfb.de/server/hd_video.php?play=%s' % video_id,
+ f'http://tv.dfb.de/server/hd_video.php?play={video_id}',
display_id)
video_info = player_info.find('video')
stream_access_url = self._proto_relative_url(video_info.find('url').text.strip())
@@ -46,7 +46,7 @@ class DFBIE(InfoExtractor):
'id': video_id,
'display_id': display_id,
'title': video_info.find('title').text,
- 'thumbnail': 'http://tv.dfb.de/images/%s_640x360.jpg' % video_id,
+ 'thumbnail': f'http://tv.dfb.de/images/{video_id}_640x360.jpg',
'upload_date': unified_strdate(video_info.find('time_date').text),
'formats': formats,
}