summaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/pladform.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/pladform.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 'yt_dlp/extractor/pladform.py')
-rw-r--r--yt_dlp/extractor/pladform.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/yt_dlp/extractor/pladform.py b/yt_dlp/extractor/pladform.py
index c72a387..f4355d0 100644
--- a/yt_dlp/extractor/pladform.py
+++ b/yt_dlp/extractor/pladform.py
@@ -39,7 +39,7 @@ class PladformIE(InfoExtractor):
'uploader': 'Comedy Club',
'duration': 367,
},
- 'expected_warnings': ['HTTP Error 404: Not Found']
+ 'expected_warnings': ['HTTP Error 404: Not Found'],
}, {
'url': 'https://out.pladform.ru/player?pl=64471&videoid=3777899&vk_puid15=0&vk_puid34=0',
'md5': '53362fac3a27352da20fa2803cc5cd6f',
@@ -73,14 +73,14 @@ class PladformIE(InfoExtractor):
def fail(text):
raise ExtractorError(
- '%s returned error: %s' % (self.IE_NAME, text),
+ f'{self.IE_NAME} returned error: {text}',
expected=True)
if not video:
- targetUrl = self._request_webpage(url, video_id, note='Resolving final URL').url
- if targetUrl == url:
+ target_url = self._request_webpage(url, video_id, note='Resolving final URL').url
+ if target_url == url:
raise ExtractorError('Can\'t parse page')
- return self.url_result(targetUrl)
+ return self.url_result(target_url)
if video.tag == 'error':
fail(video.text)
@@ -111,7 +111,7 @@ class PladformIE(InfoExtractor):
fail(error)
webpage = self._download_webpage(
- 'http://video.pladform.ru/catalog/video/videoid/%s' % video_id,
+ f'http://video.pladform.ru/catalog/video/videoid/{video_id}',
video_id)
title = self._og_search_title(webpage, fatal=False) or xpath_text(