mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-11-10 19:10:46 +00:00
[extractor] Common function _match_valid_url
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# coding: utf-8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import re
|
||||
|
||||
from .theplatform import ThePlatformFeedIE
|
||||
from ..utils import (
|
||||
@@ -96,7 +95,7 @@ class CorusIE(ThePlatformFeedIE):
|
||||
}
|
||||
|
||||
def _real_extract(self, url):
|
||||
domain, video_id = re.match(self._VALID_URL, url).groups()
|
||||
domain, video_id = self._match_valid_url(url).groups()
|
||||
site = domain.split('.')[0]
|
||||
path = self._SITE_MAP.get(site, site)
|
||||
if path != 'series':
|
||||
|
||||
Reference in New Issue
Block a user