mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-23 22:22:52 +08:00
[npo] Raise an ExtractorError if the metadata server tells us the video is gone
This commit is contained in:
parent
e7d3de675e
commit
92200c1b79
@ -170,6 +170,9 @@ class NPOIE(NPOBaseIE):
|
||||
transform_source=strip_jsonp,
|
||||
)
|
||||
|
||||
if 'error' in metadata and metadata['code'] == 440:
|
||||
raise ExtractorError('Video gone')
|
||||
|
||||
# For some videos actual video id (prid) is different (e.g. for
|
||||
# http://www.omroepwnl.nl/video/fragment/vandaag-de-dag-verkiezingen__POMS_WNL_853698
|
||||
# video id is POMS_WNL_853698 but prid is POW_00996502)
|
||||
|
Loading…
Reference in New Issue
Block a user