This commit is contained in:
JChris246 2020-10-18 00:52:33 +08:00 committed by GitHub
commit ca755f6475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -36,8 +36,12 @@ class Porn91IE(InfoExtractor):
raise ExtractorError('91 Porn says: Daily limit 10 videos exceeded', expected=True)
title = self._search_regex(
r'<div id="viewvideo-title">([^<]+)</div>', webpage, 'title')
title = title.replace('\n', '')
[
r'<div id="viewvideo-title">([^<]+)</div>',
r'<title>([^\n]+)',
], webpage, 'title'
)
title = title.strip()
video_link_url = self._search_regex(
r'<textarea[^>]+id=["\']fm-video_link[^>]+>([^<]+)</textarea>',