regex change and use of suitable
This commit is contained in:
parent
47dc6df583
commit
07fc0104f7
@ -195,20 +195,20 @@ class TVNowListIE(TVNowListBaseIE):
|
|||||||
|
|
||||||
|
|
||||||
class TVNowListChannelIE(TVNowListBaseIE):
|
class TVNowListChannelIE(TVNowListBaseIE):
|
||||||
_VALID_URL = r'(?P<base_url>https?://(?:www\.)?tvnow\.(?:de|at|ch)/(?:rtl(?:2|plus)?|nitro|superrtl|ntv|vox)/(?P<show_id>[^/]+)$)'
|
_VALID_URL = r'(?P<base_url>https?://(?:www\.)?tvnow\.(?:de|at|ch)/(?:rtl(?:2|plus)?|nitro|superrtl|ntv|vox)/(?P<show_id>[^/]+))'
|
||||||
|
|
||||||
_SHOW_FIELDS = ('id', 'title', )
|
_SHOW_FIELDS = ('id', 'title', )
|
||||||
_SEASON_FIELDS = ('id', 'headline', 'seoheadline', )
|
_SEASON_FIELDS = ('id', 'headline', 'seoheadline', )
|
||||||
|
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://www.tvnow.at/vox/ab-ins-beet',
|
'url': 'https://www.tvnow.at/vox/ab-ins-beet',
|
||||||
'info_dict': {
|
'only_matching': 'True',
|
||||||
'id': 172,
|
|
||||||
'title': 'Ab ins Beet!',
|
|
||||||
},
|
|
||||||
'playlist_mincount': 1,
|
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def suitable(cls, url):
|
||||||
|
return False if TVNowIE.suitable(url) or TVNowListIE.suitable(url) else super(TVNowListChannelIE, cls).suitable(url)
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
base_url, show_id = re.match(self._VALID_URL, url).groups()
|
base_url, show_id = re.match(self._VALID_URL, url).groups()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user