mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 09:07:58 +01:00
[ynet] Use compat_urllib_parse_unquote_plus
This commit is contained in:
parent
aa4789d632
commit
db6c50f109
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..compat import compat_urllib_parse
|
from ..compat import compat_urllib_parse_unquote_plus
|
||||||
|
|
||||||
|
|
||||||
class YnetIE(InfoExtractor):
|
class YnetIE(InfoExtractor):
|
||||||
|
@ -34,7 +34,7 @@ def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
content = compat_urllib_parse.unquote_plus(self._og_search_video_url(webpage))
|
content = compat_urllib_parse_unquote_plus(self._og_search_video_url(webpage))
|
||||||
config = json.loads(self._search_regex(r'config=({.+?})$', content, 'video config'))
|
config = json.loads(self._search_regex(r'config=({.+?})$', content, 'video config'))
|
||||||
f4m_url = config['clip']['url']
|
f4m_url = config['clip']['url']
|
||||||
title = self._og_search_title(webpage)
|
title = self._og_search_title(webpage)
|
||||||
|
|
Loading…
Reference in a new issue