]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/acast.py
[extractor] Common function `_match_valid_url`
[yt-dlp.git] / yt_dlp / extractor / acast.py
index b9355a2c81d2c47dae19b0c6d252b08c3d428b43..63587c5cffcf99a2c8f9e07e47c69efec806e731 100644 (file)
@@ -1,7 +1,6 @@
 # coding: utf-8
 from __future__ import unicode_literals
 
-import re
 
 from .common import InfoExtractor
 from ..utils import (
@@ -80,7 +79,7 @@ class ACastIE(ACastBaseIE):
     }]
 
     def _real_extract(self, url):
-        channel, display_id = re.match(self._VALID_URL, url).groups()
+        channel, display_id = self._match_valid_url(url).groups()
         episode = self._call_api(
             '%s/episodes/%s' % (channel, display_id),
             display_id, {'showInfo': 'true'})