From: hrimfaxi Date: Sat, 13 Jul 2019 19:57:44 +0000 (+0800) Subject: [porn91] Fix extraction (#21312) X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=2fe074a960773c2ec6f0a94a8c5fab5af8714651;p=youtube-dl.git [porn91] Fix extraction (#21312) --- 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'
([^<]+)
', 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']+id=["\']fm-video_link[^>]+>([^<]+)', + 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*\s*(\d+:\d+)', webpage, 'duration', fatal=False))