mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 18:41:29 +00:00
[odnoklassniki] Use compat_urllib_parse_unquote
This commit is contained in:
parent
9fd3bf04b7
commit
b78f5ec4c3
|
@ -2,7 +2,7 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..compat import compat_urllib_parse
|
from ..compat import compat_urllib_parse_unquote
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
unified_strdate,
|
unified_strdate,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
|
@ -62,7 +62,7 @@ def _real_extract(self, url):
|
||||||
metadata = self._parse_json(metadata, video_id)
|
metadata = self._parse_json(metadata, video_id)
|
||||||
else:
|
else:
|
||||||
metadata = self._download_json(
|
metadata = self._download_json(
|
||||||
compat_urllib_parse.unquote(flashvars['metadataUrl']),
|
compat_urllib_parse_unquote(flashvars['metadataUrl']),
|
||||||
video_id, 'Downloading metadata JSON')
|
video_id, 'Downloading metadata JSON')
|
||||||
|
|
||||||
movie = metadata['movie']
|
movie = metadata['movie']
|
||||||
|
|
Loading…
Reference in a new issue