]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/lynda.py
[extractor] Common function `_match_valid_url`
[yt-dlp.git] / yt_dlp / extractor / lynda.py
index 06662be1aca36ef75ecb50c5894fc335553f34f8..58cf17239f70e5288ba7c51b947ee5f979a8d635 100644 (file)
@@ -128,7 +128,7 @@ def _raise_unavailable(self, video_id):
             'Video %s is only available for members' % video_id)
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
+        mobj = self._match_valid_url(url)
         video_id = mobj.group('id')
         course_id = mobj.group('course_id')
 
@@ -281,7 +281,7 @@ class LyndaCourseIE(LyndaBaseIE):
     }]
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
+        mobj = self._match_valid_url(url)
         course_path = mobj.group('coursepath')
         course_id = mobj.group('courseid')