mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-22 10:11:52 +00:00
Changed regex which will grab 1 result for title and replaced old pattern
This commit is contained in:
parent
92dde77016
commit
c3f3a45b7d
1 changed files with 5 additions and 1 deletions
|
@ -36,7 +36,11 @@ class Porn91IE(InfoExtractor):
|
||||||
raise ExtractorError('91 Porn says: Daily limit 10 videos exceeded', expected=True)
|
raise ExtractorError('91 Porn says: Daily limit 10 videos exceeded', expected=True)
|
||||||
|
|
||||||
title = self._search_regex(
|
title = self._search_regex(
|
||||||
r'<h4 class="login_register_header"[^>]+>([^<]+)</h4>', webpage, 'title')
|
[
|
||||||
|
r'<div id="viewvideo-title">([^<]+)</div>',
|
||||||
|
r'<title>([^\n]+)',
|
||||||
|
], webpage, 'title'
|
||||||
|
)
|
||||||
title = title.strip()
|
title = title.strip()
|
||||||
|
|
||||||
video_link_url = self._search_regex(
|
video_link_url = self._search_regex(
|
||||||
|
|
Loading…
Reference in a new issue