]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/rcs.py
[extractor] Common function `_match_valid_url`
[yt-dlp.git] / yt_dlp / extractor / rcs.py
index 7ee351c6047fec9b72aa298c5d63599912992709..ace611bc92c9ca89b58863cd1cac0b2b92afd586 100644 (file)
@@ -203,8 +203,8 @@ def _create_formats(self, urls, video_id):
         return formats
 
     def _real_extract(self, url):
-        video_id = self._match_id(url)
-        mobj = re.search(self._VALID_URL, url)
+        mobj = self._match_valid_url(url)
+        video_id = mobj.group('id')
 
         if 'cdn' not in mobj.groupdict():
             raise ExtractorError('CDN not found in url: %s' % url)