]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/roxwel.py
[extractor] Common function `_match_valid_url`
[yt-dlp.git] / yt_dlp / extractor / roxwel.py
index 65284643b4de287c7e77b9e2b571822c5a020606..84bb1aa00b7be65076591bc3f68898436b963307 100644 (file)
@@ -1,6 +1,5 @@
 from __future__ import unicode_literals
 
-import re
 
 from .common import InfoExtractor
 from ..utils import unified_strdate, determine_ext
@@ -27,7 +26,7 @@ class RoxwelIE(InfoExtractor):
     }
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
+        mobj = self._match_valid_url(url)
         filename = mobj.group('filename')
         info_url = 'http://www.roxwel.com/api/videos/%s' % filename
         info = self._download_json(info_url, filename)