Skip to content

Commit

Permalink
[porn91] Fix extraction (#21312)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrimfaxi authored and dstftw committed Jul 13, 2019
1 parent c452790 commit 2fe074a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion youtube_dl/extractor/porn91.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ def _real_extract(self, url):
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))
Expand Down

0 comments on commit 2fe074a

Please sign in to comment.