summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorhrimfaxi <[email protected]>2019-07-14 03:57:44 +0800
committerSergey M <[email protected]>2019-07-14 02:57:43 +0700
commit2fe074a960773c2ec6f0a94a8c5fab5af8714651 (patch)
tree967bb2f7c3b399c067271d965baa76c8f8bad8a8
parentc452790a796730113dd62db0e743b11045606e27 (diff)
downloadyoutube-dl-2fe074a960773c2ec6f0a94a8c5fab5af8714651.tar.gz
youtube-dl-2fe074a960773c2ec6f0a94a8c5fab5af8714651.zip
[porn91] Fix extraction (#21312)
-rw-r--r--youtube_dl/extractor/porn91.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/youtube_dl/extractor/porn91.py b/youtube_dl/extractor/porn91.py
index 24c3600fe..20eac647a 100644
--- 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', '')
- 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))