This commit is contained in:
YetAnotherGhost 2020-09-25 09:53:39 +02:00 committed by GitHub
commit 34dd2acc78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -80,9 +80,10 @@ class EroProfileIE(InfoExtractor):
video_url = unescapeHTML(self._search_regex(
r'<source src="([^"]+)', webpage, 'video url'))
title = self._html_search_regex(
r'Title:</th><td>([^<]+)</td>', webpage, 'title')
thumbnail = self._search_regex(
r'onclick="showVideoPlayer\(\)"><img src="([^"]+)',
[r'<h1[^>]*>([^<]+)</h1>', r'Title:</th><td>([^<]+)</td>'],
webpage, 'title')
thumbnail = self._html_search_regex(
[r'<div class="playlistItem current">.*?<img src="([^"]+)"', r'onclick="showVideoPlayer\(\)"><img src="([^"]+)'],
webpage, 'thumbnail', fatal=False)
return {