1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 10:24:33 +01:00

[eroprofile] Use _html_search_regex for thumbnail

(Should be squashed into the previous commits)
This commit is contained in:
YetAnotherGhost 2020-01-04 20:11:35 +01:00 committed by GitHub
parent de94b1aa81
commit 94ebfe3762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ class EroProfileIE(InfoExtractor):
title = self._html_search_regex(
[r'<h1[^>]*>([^<]+)</h1>', r'Title:</th><td>([^<]+)</td>'],
webpage, 'title')
thumbnail = self._search_regex(
thumbnail = self._html_search_regex(
[r'<div class="playlistItem current">.*?<img src="([^"]+)"', r'onclick="showVideoPlayer\(\)"><img src="([^"]+)'],
webpage, 'thumbnail', fatal=False)