aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-08-12 12:50:43 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-08-12 12:53:46 +0530
commit1155ecef29187bff975ceb51c755722c660e0387 (patch)
tree34825b8a7d03537559768eb6c5a2ce70692675a3
parent96623ab5c6cea59c22395a47f00a13d334de6106 (diff)
downloadhypervideo-pre-1155ecef29187bff975ceb51c755722c660e0387.tar.lz
hypervideo-pre-1155ecef29187bff975ceb51c755722c660e0387.tar.xz
hypervideo-pre-1155ecef29187bff975ceb51c755722c660e0387.zip
[extractor/zattoo] Fix resellers
Fixes #4630
-rw-r--r--yt_dlp/extractor/zattoo.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/extractor/zattoo.py b/yt_dlp/extractor/zattoo.py
index 2a7e85472..975cc7125 100644
--- a/yt_dlp/extractor/zattoo.py
+++ b/yt_dlp/extractor/zattoo.py
@@ -237,6 +237,10 @@ class ZattooPlatformBaseIE(InfoExtractor):
ondemand_termtoken=ondemand_termtoken, ondemand_type=ondemand_type)
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)
+
def _make_valid_url(host):
return rf'https?://(?:www\.)?{re.escape(host)}/watch/[^/]+?/(?P<id>[0-9]+)[^/]+(?:/(?P<recid>[0-9]+))?'
@@ -254,10 +258,6 @@ 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)/[^/]+')