mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-12-04 06:17:54 +01:00
[zingmp3_vn] Add new extractor
This commit is contained in:
parent
d54c21303c
commit
13f9633e6b
@ -13,7 +13,6 @@ from ..utils import (
|
|||||||
url_or_none,
|
url_or_none,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
try_get,
|
try_get,
|
||||||
ExtractorError,
|
|
||||||
js_to_json
|
js_to_json
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -111,10 +110,6 @@ class Zingmp3_vnIE(InfoExtractor):
|
|||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|
||||||
mobj = re.search(self._VALID_URL, url)
|
mobj = re.search(self._VALID_URL, url)
|
||||||
if not mobj:
|
|
||||||
raise ExtractorError(
|
|
||||||
f'Zingmp3 no support for {url}.', expected=True
|
|
||||||
)
|
|
||||||
video_id = mobj.group('id')
|
video_id = mobj.group('id')
|
||||||
type = mobj.group('type')
|
type = mobj.group('type')
|
||||||
slug = mobj.group('slug')
|
slug = mobj.group('slug')
|
||||||
|
Loading…
Reference in New Issue
Block a user