From 48732becfe013849a4191ff467f27b08e04e84fb Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 15 Aug 2022 01:53:42 +0530 Subject: [PATCH] Fix bug in 1155ecef29187bff975ceb51c755722c660e0387 --- yt_dlp/extractor/zattoo.py | 8 ++++++-- 1 file 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 @@ def _extract_ondemand(self, ondemand_id): 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 @@ def _create_valid_url(match, qs, base_re=None): {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)/[^/]+')