Compare commits

...

3 Commits

Author SHA1 Message Date
JChris246
4682fac3aa
Merge c3f3a45b7d into e1b3fa242c 2024-07-28 00:16:53 +09:00
JChris246
c3f3a45b7d Changed regex which will grab 1 result for title and replaced old pattern 2020-06-30 20:38:17 -04:00
JChris246
92dde77016 Fixed title extraction 2020-06-30 00:30:14 -04:00

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>',