1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-18 08:16:10 +00:00

Update youtube_dl/extractor/tvp.py

Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
bibiak 2023-05-22 21:21:27 +02:00 committed by GitHub
parent 56c07235ee
commit 283b6b31f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -381,6 +381,9 @@ class TVPIE(InfoExtractor):
if ie_cls.suitable(urlh.url):
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(
r'window\s*\.\s*__(?:video|news|website|directory)Data\s*=',
webpage):