[extractor] Common function _match_valid_url
This commit is contained in:
parent
f79ec47d71
commit
5ad28e7ffd
293 changed files with 389 additions and 541 deletions
|
|
@ -270,7 +270,7 @@ class RaiPlayIE(RaiBaseIE):
|
|||
}]
|
||||
|
||||
def _real_extract(self, url):
|
||||
base, video_id = re.match(self._VALID_URL, url).groups()
|
||||
base, video_id = self._match_valid_url(url).groups()
|
||||
|
||||
media = self._download_json(
|
||||
base + '.json', video_id, 'Downloading video JSON')
|
||||
|
|
@ -363,7 +363,7 @@ class RaiPlayPlaylistIE(InfoExtractor):
|
|||
}]
|
||||
|
||||
def _real_extract(self, url):
|
||||
base, playlist_id = re.match(self._VALID_URL, url).groups()
|
||||
base, playlist_id = self._match_valid_url(url).groups()
|
||||
|
||||
program = self._download_json(
|
||||
base + '.json', playlist_id, 'Downloading program JSON')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue