projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
073cca3
)
[npo] Capture and output error message
author
Sergey M․
<dstftw@gmail.com>
Sat, 17 Feb 2018 13:11:06 +0000
(20:11 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 17 Feb 2018 13:32:20 +0000
(20:32 +0700)
youtube_dl/extractor/npo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/npo.py
b/youtube_dl/extractor/npo.py
index b8fe244071d05e1daac7514b932be148802c21a7..754a974433e780f0350fc0b4a48eba8a5f4454db 100644
(file)
--- a/
youtube_dl/extractor/npo.py
+++ b/
youtube_dl/extractor/npo.py
@@
-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)