mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 03:33:02 +00:00
[malemotion] Use compat_urllib_parse_unquote
This commit is contained in:
parent
899a3e2f13
commit
977a247a06
1 changed files with 2 additions and 4 deletions
|
@ -2,9 +2,7 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..compat import (
|
from ..compat import compat_urllib_parse_unquote
|
||||||
compat_urllib_parse,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class MalemotionIE(InfoExtractor):
|
class MalemotionIE(InfoExtractor):
|
||||||
|
@ -24,7 +22,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)
|
||||||
|
|
||||||
video_url = compat_urllib_parse.unquote(self._search_regex(
|
video_url = compat_urllib_parse_unquote(self._search_regex(
|
||||||
r'<source type="video/mp4" src="(.+?)"', webpage, 'video URL'))
|
r'<source type="video/mp4" src="(.+?)"', webpage, 'video URL'))
|
||||||
video_title = self._html_search_regex(
|
video_title = self._html_search_regex(
|
||||||
r'<title>(.*?)</title', webpage, 'title')
|
r'<title>(.*?)</title', webpage, 'title')
|
||||||
|
|
Loading…
Reference in a new issue