]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/atresplayer.py
[extractor] Common function `_match_valid_url`
[yt-dlp.git] / yt_dlp / extractor / atresplayer.py
index 4afde8f90e5b3ab3f73d3efed41c813dcd86276a..8143eb4d755bc22eacbdf097e57e8440f0d72942 100644 (file)
@@ -1,7 +1,6 @@
 # coding: utf-8
 from __future__ import unicode_literals
 
-import re
 
 from .common import InfoExtractor
 from ..compat import compat_HTTPError
@@ -75,7 +74,7 @@ def _login(self):
         self._request_webpage(target_url, None, 'Following Target URL')
 
     def _real_extract(self, url):
-        display_id, video_id = re.match(self._VALID_URL, url).groups()
+        display_id, video_id = self._match_valid_url(url).groups()
 
         try:
             episode = self._download_json(