]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/cnn.py
[extractor] Common function `_match_valid_url`
[yt-dlp.git] / yt_dlp / extractor / cnn.py
index 2d950fa05c47acdd9f9039e1239656af331cc280..af11d95b43395d5248f05b184c5145253bc3da5d 100644 (file)
@@ -1,6 +1,5 @@
 from __future__ import unicode_literals
 
-import re
 
 from .common import InfoExtractor
 from .turner import TurnerBaseIE
@@ -88,7 +87,7 @@ def _extract_timestamp(self, video_data):
         return None
 
     def _real_extract(self, url):
-        sub_domain, path, page_title = re.match(self._VALID_URL, url).groups()
+        sub_domain, path, page_title = self._match_valid_url(url).groups()
         if sub_domain not in ('money', 'edition'):
             sub_domain = 'edition'
         config = self._CONFIG[sub_domain]