aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-08-15 01:53:42 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-08-15 03:31:48 +0530
commit48732becfe013849a4191ff467f27b08e04e84fb (patch)
tree646753512fdd4aeff293383e4752b19b09e09d5a
parent6440c45ff3c3209593c0f39af075e71e4ca0299a (diff)
downloadhypervideo-pre-48732becfe013849a4191ff467f27b08e04e84fb.tar.lz
hypervideo-pre-48732becfe013849a4191ff467f27b08e04e84fb.tar.xz
hypervideo-pre-48732becfe013849a4191ff467f27b08e04e84fb.zip
Fix bug in 1155ecef29187bff975ceb51c755722c660e0387
-rw-r--r--yt_dlp/extractor/zattoo.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/yt_dlp/extractor/zattoo.py b/yt_dlp/extractor/zattoo.py
index 975cc7125..9ce15b388 100644
--- a/yt_dlp/extractor/zattoo.py
+++ b/yt_dlp/extractor/zattoo.py
@@ -238,8 +238,8 @@ class ZattooPlatformBaseIE(InfoExtractor):
return info_dict
def _real_extract(self, url):
- vid1, vid2 = self._match_valid_url(url).group('vid1', 'vid2')
- return getattr(self, f'_extract_{self._TYPE}')(vid1 or vid2)
+ video_id, record_id = self._match_valid_url(url).groups()
+ return self._extract_video(video_id, record_id)
def _make_valid_url(host):
@@ -258,6 +258,10 @@ class ZattooBaseIE(ZattooPlatformBaseIE):
{match_base}
)'''
+ def _real_extract(self, url):
+ vid1, vid2 = self._match_valid_url(url).group('vid1', 'vid2')
+ return getattr(self, f'_extract_{self._TYPE}')(vid1 or vid2)
+
class ZattooIE(ZattooBaseIE):
_VALID_URL = ZattooBaseIE._create_valid_url(r'\d+', 'program', '(?:program|watch)/[^/]+')