]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/theweatherchannel.py
[extractor] Common function `_match_valid_url`
[yt-dlp.git] / yt_dlp / extractor / theweatherchannel.py
index b2a8c3797e9ebe43da451a39da5ab3d56c043aa6..9e506c9e02219e0766285acb2362f2f5d5980218 100644 (file)
@@ -2,7 +2,6 @@
 from __future__ import unicode_literals
 
 import json
-import re
 
 from .theplatform import ThePlatformIE
 from ..utils import (
@@ -33,7 +32,7 @@ class TheWeatherChannelIE(ThePlatformIE):
     }]
 
     def _real_extract(self, url):
-        asset_name, locale, display_id = re.match(self._VALID_URL, url).groups()
+        asset_name, locale, display_id = self._match_valid_url(url).groups()
         if not locale:
             locale = 'en-US'
         video_data = list(self._download_json(