1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 00:54:31 +01:00

[eroprofile] Add old regexes back

(Should be squashed into the previous commit)
This commit is contained in:
YetAnotherGhost 2020-01-04 18:50:19 +01:00 committed by GitHub
parent ed835e1b8c
commit 99828a4f66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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'<h1[^>]*>([^<]+)</h1>', webpage, 'title')
[r'<h1[^>]*>([^<]+)</h1>', r'Title:</th><td>([^<]+)</td>'],
webpage, 'title')
thumbnail = self._search_regex(
r'<div class="playlistItem current">.*<img src="([^"]+)"',
[r'<div class="playlistItem current">.*<img src="([^"]+)"', r'onclick="showVideoPlayer\(\)"><img src="([^"]+)'],
webpage, 'thumbnail', fatal=False)
return {