aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/safari.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/safari.py')
-rw-r--r--yt_dlp/extractor/safari.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/safari.py b/yt_dlp/extractor/safari.py
index 2cc665122..c92e8849b 100644
--- a/yt_dlp/extractor/safari.py
+++ b/yt_dlp/extractor/safari.py
@@ -127,7 +127,7 @@ class SafariIE(SafariBaseIE):
_UICONF_ID = '29375172'
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
+ mobj = self._match_valid_url(url)
reference_id = mobj.group('reference_id')
if reference_id:
@@ -189,7 +189,7 @@ class SafariApiIE(SafariBaseIE):
}]
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
+ mobj = self._match_valid_url(url)
part = self._download_json(
url, '%s/%s' % (mobj.group('course_id'), mobj.group('part')),
'Downloading part JSON')