mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-18 16:26:23 +00:00
Update youtube_dl/extractor/tvp.py
Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
parent
56c07235ee
commit
283b6b31f5
1 changed files with 3 additions and 0 deletions
|
@ -381,6 +381,9 @@ class TVPIE(InfoExtractor):
|
||||||
if ie_cls.suitable(urlh.url):
|
if ie_cls.suitable(urlh.url):
|
||||||
return self.url_result(urlh.url, ie=ie_cls.ie_key(), video_id=page_id)
|
return self.url_result(urlh.url, ie=ie_cls.ie_key(), video_id=page_id)
|
||||||
|
|
||||||
|
if urlh.getcode() == 404:
|
||||||
|
raise compat_HTTPError(url, 404, 'HTTP Error 404: Not Found', urlh.headers, urlh)
|
||||||
|
|
||||||
if re.search(
|
if re.search(
|
||||||
r'window\s*\.\s*__(?:video|news|website|directory)Data\s*=',
|
r'window\s*\.\s*__(?:video|news|website|directory)Data\s*=',
|
||||||
webpage):
|
webpage):
|
||||||
|
|
Loading…
Reference in a new issue