projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
94dcade
)
[91porn] Unquote final URL (Closes #8881)
author
Sergey M․
<dstftw@gmail.com>
Sat, 19 Mar 2016 20:34:02 +0000
(
02:34
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 19 Mar 2016 20:34:02 +0000
(
02:34
+0600)
youtube_dl/extractor/porn91.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/porn91.py
b/youtube_dl/extractor/porn91.py
index 3e15533e9d445e96884974af398e0461438bcc8b..a6dd2694cefac83d9e21392d0d0ccc211207a6f1 100644
(file)
--- a/
youtube_dl/extractor/porn91.py
+++ b/
youtube_dl/extractor/porn91.py
@@
-1,7
+1,10
@@
# encoding: utf-8
from __future__ import unicode_literals
# encoding: utf-8
from __future__ import unicode_literals
-from ..compat import compat_urllib_parse
+from ..compat import (
+ compat_urllib_parse,
+ compat_urllib_parse_unquote,
+)
from .common import InfoExtractor
from ..utils import (
parse_duration,
from .common import InfoExtractor
from ..utils import (
parse_duration,
@@
-55,7
+58,8
@@
class Porn91IE(InfoExtractor):
info_cn = self._download_webpage(
'http://91porn.com/getfile.php?' + url_params, video_id,
'get real video url')
info_cn = self._download_webpage(
'http://91porn.com/getfile.php?' + url_params, video_id,
'get real video url')
- video_url = self._search_regex(r'file=([^&]+)&', info_cn, 'url')
+ video_url = compat_urllib_parse_unquote(self._search_regex(
+ r'file=([^&]+)&', info_cn, 'url'))
duration = parse_duration(self._search_regex(
r'时长:\s*</span>\s*(\d+:\d+)', webpage, 'duration', fatal=False))
duration = parse_duration(self._search_regex(
r'时长:\s*</span>\s*(\d+:\d+)', webpage, 'duration', fatal=False))