projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c452790
)
[porn91] Fix extraction (#21312)
author
hrimfaxi
<outmatch@gmail.com>
Sat, 13 Jul 2019 19:57:44 +0000
(
03:57
+0800)
committer
Sergey M
<dstftw@gmail.com>
Sat, 13 Jul 2019 19:57:43 +0000
(
02:57
+0700)
youtube_dl/extractor/porn91.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/porn91.py
b/youtube_dl/extractor/porn91.py
index 24c3600fe3224347a415226f0cfa73f38eaeca51..20eac647a87c10ad405c5dd9394bd6b04d66e7f9 100644
(file)
--- a/
youtube_dl/extractor/porn91.py
+++ b/
youtube_dl/extractor/porn91.py
@@
-39,7
+39,12
@@
class Porn91IE(InfoExtractor):
r'<div id="viewvideo-title">([^<]+)</div>', webpage, 'title')
title = title.replace('\n', '')
r'<div id="viewvideo-title">([^<]+)</div>', webpage, 'title')
title = title.replace('\n', '')
- info_dict = self._parse_html5_media_entries(url, webpage, video_id)[0]
+ video_link_url = self._search_regex(
+ r'<textarea[^>]+id=["\']fm-video_link[^>]+>([^<]+)</textarea>',
+ webpage, 'video link')
+ videopage = self._download_webpage(video_link_url, video_id)
+
+ info_dict = self._parse_html5_media_entries(url, videopage, video_id)[0]
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))