1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-21 23:33:26 +08:00

[npo] Capture and output error message

This commit is contained in:
Sergey M․ 2018-02-17 20:11:06 +07:00
parent 073cca3df8
commit b8adcec4ea
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -170,6 +170,10 @@ class NPOIE(NPOBaseIE):
transform_source=strip_jsonp,
)
error = metadata.get('error')
if error:
raise ExtractorError(error, expected=True)
# 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)