mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-09-03 08:35:32 +00:00
[extractor] Common function _match_valid_url
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user