Fix bug in 1155ecef29
This commit is contained in:
parent
6440c45ff3
commit
48732becfe
1 changed files with 6 additions and 2 deletions
|
|
@ -238,8 +238,8 @@ class ZattooPlatformBaseIE(InfoExtractor):
|
||||||
return info_dict
|
return info_dict
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
vid1, vid2 = self._match_valid_url(url).group('vid1', 'vid2')
|
video_id, record_id = self._match_valid_url(url).groups()
|
||||||
return getattr(self, f'_extract_{self._TYPE}')(vid1 or vid2)
|
return self._extract_video(video_id, record_id)
|
||||||
|
|
||||||
|
|
||||||
def _make_valid_url(host):
|
def _make_valid_url(host):
|
||||||
|
|
@ -258,6 +258,10 @@ class ZattooBaseIE(ZattooPlatformBaseIE):
|
||||||
{match_base}
|
{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):
|
class ZattooIE(ZattooBaseIE):
|
||||||
_VALID_URL = ZattooBaseIE._create_valid_url(r'\d+', 'program', '(?:program|watch)/[^/]+')
|
_VALID_URL = ZattooBaseIE._create_valid_url(r'\d+', 'program', '(?:program|watch)/[^/]+')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue