aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/yahoo.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/yahoo.py')
-rw-r--r--yt_dlp/extractor/yahoo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/yahoo.py b/yt_dlp/extractor/yahoo.py
index df1e078ac..741efefc8 100644
--- a/yt_dlp/extractor/yahoo.py
+++ b/yt_dlp/extractor/yahoo.py
@@ -279,7 +279,7 @@ class YahooIE(InfoExtractor):
}
def _real_extract(self, url):
- url, country, display_id = re.match(self._VALID_URL, url).groups()
+ url, country, display_id = self._match_valid_url(url).groups()
if not country:
country = 'us'
else:
@@ -527,7 +527,7 @@ class YahooJapanNewsIE(InfoExtractor):
return formats
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
+ mobj = self._match_valid_url(url)
host = mobj.group('host')
display_id = mobj.group('id') or host