summaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/markiza.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/markiza.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/markiza.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/yt_dlp/extractor/markiza.py b/yt_dlp/extractor/markiza.py
index ca465ea..088b60d 100644
--- a/yt_dlp/extractor/markiza.py
+++ b/yt_dlp/extractor/markiza.py
@@ -1,7 +1,6 @@
import re
from .common import InfoExtractor
-from ..compat import compat_str
from ..utils import (
orderedSet,
parse_duration,
@@ -60,11 +59,11 @@ class MarkizaIE(InfoExtractor):
info.update({
'id': video_id,
'title': try_get(
- data, lambda x: x['details']['name'], compat_str),
+ data, lambda x: x['details']['name'], str),
})
else:
info['duration'] = parse_duration(
- try_get(data, lambda x: x['details']['duration'], compat_str))
+ try_get(data, lambda x: x['details']['duration'], str))
return info
@@ -104,7 +103,7 @@ class MarkizaPageIE(InfoExtractor):
@classmethod
def suitable(cls, url):
- return False if MarkizaIE.suitable(url) else super(MarkizaPageIE, cls).suitable(url)
+ return False if MarkizaIE.suitable(url) else super().suitable(url)
def _real_extract(self, url):
playlist_id = self._match_id(url)
@@ -116,7 +115,7 @@ class MarkizaPageIE(InfoExtractor):
url, playlist_id, expected_status=500)
entries = [
- self.url_result('http://videoarchiv.markiza.sk/video/%s' % video_id)
+ self.url_result(f'http://videoarchiv.markiza.sk/video/{video_id}')
for video_id in orderedSet(re.findall(
r'(?:initPlayer_|data-entity=["\']|id=["\']player_)(\d+)',
webpage))]