]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/vrt.py
[extractor] Common function `_match_valid_url`
[yt-dlp.git] / yt_dlp / extractor / vrt.py
index 2b65d2e5f395e5eeab0b72cd8ec45ee17229b98e..10dc94abcbaff415b81436f80c4b62cf7a56d940 100644 (file)
@@ -1,7 +1,6 @@
 # coding: utf-8
 from __future__ import unicode_literals
 
-import re
 
 from .common import InfoExtractor
 from ..utils import (
@@ -52,7 +51,7 @@ class VRTIE(InfoExtractor):
     }
 
     def _real_extract(self, url):
-        site, display_id = re.match(self._VALID_URL, url).groups()
+        site, display_id = self._match_valid_url(url).groups()
         webpage = self._download_webpage(url, display_id)
         attrs = extract_attributes(self._search_regex(
             r'(<[^>]+class="vrtvideo( [^"]*)?"[^>]*>)', webpage, 'vrt video'))