mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-10 00:58:17 +02:00
[veehd] Use compat_urllib_parse_unquote
This commit is contained in:
parent
7bd42d0d96
commit
6b19647d57
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..compat import (
|
from ..compat import (
|
||||||
|
compat_urllib_parse_unquote,
|
||||||
compat_urlparse,
|
compat_urlparse,
|
||||||
)
|
)
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
@ -76,7 +77,7 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
if config_json:
|
if config_json:
|
||||||
config = json.loads(config_json)
|
config = json.loads(config_json)
|
||||||
video_url = compat_urlparse.unquote(config['clip']['url'])
|
video_url = compat_urllib_parse_unquote(config['clip']['url'])
|
||||||
|
|
||||||
if not video_url:
|
if not video_url:
|
||||||
video_url = self._html_search_regex(
|
video_url = self._html_search_regex(
|
||||||
|
Loading…
Reference in New Issue
Block a user