From 5ad28e7ffd41deccba33776c1609aa7855601739 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 19 Aug 2021 07:11:24 +0530 Subject: [extractor] Common function `_match_valid_url` --- yt_dlp/extractor/minoto.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'yt_dlp/extractor/minoto.py') diff --git a/yt_dlp/extractor/minoto.py b/yt_dlp/extractor/minoto.py index 636731195..dba82db5f 100644 --- a/yt_dlp/extractor/minoto.py +++ b/yt_dlp/extractor/minoto.py @@ -1,7 +1,6 @@ # coding: utf-8 from __future__ import unicode_literals -import re from .common import InfoExtractor from ..utils import ( @@ -14,7 +13,7 @@ class MinotoIE(InfoExtractor): _VALID_URL = r'(?:minoto:|https?://(?:play|iframe|embed)\.minoto-video\.com/(?P[0-9]+)/)(?P[a-zA-Z0-9]+)' def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) + mobj = self._match_valid_url(url) player_id = mobj.group('player_id') or '1' video_id = mobj.group('id') video_data = self._download_json('http://play.minoto-video.com/%s/%s.js' % (player_id, video_id), video_id) -- cgit v1.2.3