aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/springboardplatform.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/springboardplatform.py')
-rw-r--r--yt_dlp/extractor/springboardplatform.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/yt_dlp/extractor/springboardplatform.py b/yt_dlp/extractor/springboardplatform.py
index bdb8ef496..cd3261d55 100644
--- a/yt_dlp/extractor/springboardplatform.py
+++ b/yt_dlp/extractor/springboardplatform.py
@@ -52,8 +52,7 @@ class SpringboardPlatformIE(InfoExtractor):
index = mobj.group('index') or mobj.group('index_2')
video = self._download_xml(
- 'http://cms.springboardplatform.com/xml_feeds_advanced/index/%s/rss3/%s'
- % (index, video_id), video_id)
+ f'http://cms.springboardplatform.com/xml_feeds_advanced/index/{index}/rss3/{video_id}', video_id)
item = xpath_element(video, './/item', 'item', fatal=True)
@@ -66,7 +65,7 @@ class SpringboardPlatformIE(InfoExtractor):
if 'error_video.mp4' in video_url:
raise ExtractorError(
- 'Video %s no longer exists' % video_id, expected=True)
+ f'Video {video_id} no longer exists', expected=True)
duration = int_or_none(content.get('duration'))
tbr = int_or_none(content.get('bitrate'))