Merge 8d2170c713253c02eee11d3b1822a6dd808545fc into 420d53387cff54ea1fccca061438d59bdb50a39c

This commit is contained in:
Michał Połtyn 2025-03-13 04:45:49 +05:30 committed by GitHub
commit 77642776af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,6 +59,13 @@ class EpornerIE(InfoExtractor):
video_id = self._match_id(urlh.geturl())
missing = self._html_search_regex((
r'<strong>\s*(Video has been deleted)\s*</strong>',
), webpage, 'missing', default=None)
if missing:
raise ExtractorError(
'Video %s is not available: "%s"' % (video_id, missing), expected=True)
hash = self._search_regex(
r'hash\s*[:=]\s*["\']([\da-f]{32})', webpage, 'hash')