mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-05-12 00:34:50 +09:00
Merge 8d2170c713253c02eee11d3b1822a6dd808545fc into c052a16f72af7dd7671d4dd62826de71cd99dfb6
This commit is contained in:
commit
3173a4299d
@ -59,6 +59,13 @@ class EpornerIE(InfoExtractor):
|
|||||||
|
|
||||||
video_id = self._match_id(urlh.geturl())
|
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(
|
hash = self._search_regex(
|
||||||
r'hash\s*[:=]\s*["\']([\da-f]{32})', webpage, 'hash')
|
r'hash\s*[:=]\s*["\']([\da-f]{32})', webpage, 'hash')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user