]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/nhl.py
[extractor/wistia] Match IDs in embed URLs (#4990)
[yt-dlp.git] / yt_dlp / extractor / nhl.py
index eddfe1f371cabea1462f69aee96b9163aa685ac9..884f9e2aed631940a26a1b6815aabebb573d1a9a 100644 (file)
@@ -1,7 +1,3 @@
-from __future__ import unicode_literals
-
-import re
-
 from .common import InfoExtractor
 from ..compat import compat_str
 from ..utils import (
@@ -14,7 +10,7 @@
 
 class NHLBaseIE(InfoExtractor):
     def _real_extract(self, url):
-        site, tmp_id = re.match(self._VALID_URL, url).groups()
+        site, tmp_id = self._match_valid_url(url).groups()
         video_data = self._download_json(
             'https://%s/%s/%sid/v1/%s/details/web-v1.json'
             % (self._CONTENT_DOMAIN, site[:3], 'item/' if site == 'mlb' else '', tmp_id), tmp_id)