Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[Bug] NPO.nl stopped working #6136
Comments
|
Thanks for the report and detailed descriptions. I think the two keys are changed metadata url (as you've mentioned) and the 'encrypted' token. The extraction is fixed and in the next version NPO.nl should work again. |
|
Yesterday I discovered the token-obfuscate-function in npoplayer-min.js and I was about to let you know, but you beat me to it. And above all, you already fixed it! Thanks a lot! |
It looks like NPO.nl has changed some things in the background.
youtube-dl.exe -vF http://www.npo.nl/nos-journaal/30-06-2015/POW_00942064 [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'-vF', u'http://www.npo.nl/nos-journaal/30-06-2015/POW_00942064 '] [debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252 [debug] youtube-dl version 2015.06.25 [debug] Python version 2.7.8 - Windows-XP-5.1.2600-SP3 [debug] exe versions: ffmpeg N-65810-g1b5ec6a [debug] Proxy map: {} [npo.nl] POW_00942064: Downloading JSON metadata ERROR: Unable to download JSON metadata: HTTP Error 410: Gone (caused by HTTPError()); pleas e report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; t ype youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. File "youtube_dl\extractor\common.pyo", line 312, in _request_webpage File "youtube_dl\YoutubeDL.pyo", line 1729, in urlopen File "urllib2.pyo", line 410, in open File "urllib2.pyo", line 523, in http_response File "urllib2.pyo", line 448, in error File "urllib2.pyo", line 382, in _call_chain File "urllib2.pyo", line 531, in http_error_defaultWith Firefox's webconsole I can see that:
http://ida.omroep.nl/npoplayer/i.js?s=http://www.npo.nl/nos-journaal/30-06-2015/POW_00942064. I don't know yet whether the trailing program-url is important or not.http://e.omroep.nl/metadata/POW_00942064, but the 'format_info' json-url is nowhttp://ida.omroep.nl/odi/?prid=POW_00942064&puboptions=adaptive,h264_bb,h264_sb,h264_std&adaptive=yes&part=1&token=837v2rdvu2ck4lc0ehde61ltn4&callback=jQuery....&part=1is new, as well as the enumeration of all 'pubopties'. I don't know whether%part=1and&callback=are important, because I can't get beyond this point. I constantly get:{ "success": false, "error_code": 403, "error": "Validation error" }{ "success": true, "streams": [ { "file": "http://odi.omroep.nl/video/ida/adaptive/5ce3ed983e7b1d1626cafe19ef560842/5592 f624/POW_00942064/1?extension=m3u8&type=jsonp&callback=?", "type": "adaptive", "quality": "adaptive", "label": "Adaptive" } ], "family": "adaptive" }The url is now a value in the object "file". Line 118 of npo.py then has to be:
streams[0][file] + '&type=json',