Closed alfablac closed 6 years ago
I rephrased the title, as this is not the real problem. The real problem ist, that Netflix seems to have changed something in the way they deliver the chunked responses for the manifest (for some titles), in a way that the plugin is not able to cope with it.
I hope that this might be an temporary issue, but if not, I would definitely hope that @trummerjo can take a look, as he´s the one who originally wrote the service...
Similar issue happening to me. Was working the days before.
raspberry pi 3: LibreELEC (Milhouse): devel-20171010210712-#1010-g87d8234 [Build #1010] 9.0, kernel: Linux ARM 32-bit version 4.13.5
19:51:42.943 T:1942861808 NOTICE: m_playbackStarting
19:51:42.943 T:1942861808 NOTICE: StereoscopicsManager::IsPlaying
19:51:43.170 T:1672242064 ERROR: Traceback (most recent call last):
19:51:43.170 T:1672242064 ERROR: File "/usr/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
19:51:43.170 T:1672242064 ERROR: File "/usr/lib/python2.7/SocketServer.py", line 318, in process_request
19:51:43.170 T:1672242064 ERROR: File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
19:51:43.170 T:1672242064 ERROR: File "/usr/lib/python2.7/SocketServer.py", line 652, in __init__
19:51:43.170 T:1672242064 ERROR: File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
19:51:43.170 T:1672242064 ERROR: File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
19:51:43.171 T:1672242064 ERROR: File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/MSLHttpRequestHandler.py", line 49, in do_GET
19:51:43.173 T:1672242064 ERROR: data = msl.load_manifest(int(params['id'][0]))
19:51:43.173 T:1672242064 ERROR: File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/MSL.py", line 226, in load_manifest
19:51:43.178 T:1672242064 ERROR: data = self.__decrypt_payload_chunk(resp['payloads'][0])
19:51:43.178 T:1672242064 ERROR: File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/MSL.py", line 297, in __decrypt_payload_chunk
19:51:43.178 T:1672242064 ERROR: data = json.JSONDecoder().decode(data)[1]['payload']['data']
19:51:43.178 T:1672242064 ERROR: File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
19:51:43.178 T:1672242064 ERROR: File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
19:51:43.179 T:1672242064 ERROR: ValueError: Unterminated string starting at: line 1 column 78 (char 77)
19:51:43.179 T:1125880720 ERROR: CCurlFile::FillBuffer - Failed: Server returned nothing (no headers, no data)(52)
19:51:43.179 T:1125880720 ERROR: CCurlFile::Open failed with code 0 for http://localhost:39047/manifest?id=80025322|acceptencoding=gzip&seekable=0&user-agent=Mozilla%2f5.0%20(X11%3b%20CrOS%20armv7l%207647.78.0)%20AppleWebKit%2f537.36%20(KHTML%2c%20like%20Gecko)%20Chrome%2f59.0.3071.115%20Safari%2f537.36
19:51:43.180 T:1125880720 ERROR: AddOnLog: InputStream Adaptive: Could not open / parse mpdURL (http://localhost:39047/manifest?id=80025322)
19:51:43.182 T:1125880720 ERROR: CVideoPlayer::OpenInputStream - error opening [http://localhost:39047/manifest?id=80025322]
19:51:43.182 T:1125880720 NOTICE: CVideoPlayer::OnExit()
I have the same problem, i think is because manifest is overdrived.
I can report exactly same erross like @fkpp Raspberry Pi 2: LibreELEC-RPi2.arm-9.0-Milhouse-20171017210247-#1017-gdc954af
Same problem here: LibreELEC (community): Leia-testing-Gendo-01-10-2017 (S905.arm)
23:01:07.552 T:3596088208 ERROR: Traceback (most recent call last):
23:01:07.553 T:3596088208 ERROR: File "/usr/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
23:01:07.553 T:3596088208 ERROR: File "/usr/lib/python2.7/SocketServer.py", line 318, in process_request
23:01:07.553 T:3596088208 ERROR: File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
23:01:07.554 T:3596088208 ERROR: File "/usr/lib/python2.7/SocketServer.py", line 652, in __init__
23:01:07.554 T:3596088208 ERROR: File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
23:01:07.555 T:3596088208 ERROR: File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
23:01:07.555 T:3596088208 ERROR: File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/MSLHttpRequestHandler.py", line 49, in do_GET
23:01:07.555 T:3596088208 ERROR: data = msl.load_manifest(int(params['id'][0]))
23:01:07.555 T:3596088208 ERROR: File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/MSL.py", line 226, in load_manifest
23:01:07.556 T:3596088208 ERROR: data = self.__decrypt_payload_chunk(resp['payloads'][0])
23:01:07.556 T:3596088208 ERROR: File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/MSL.py", line 297, in __decrypt_payload_chunk
23:01:07.556 T:3596088208 ERROR: data = json.JSONDecoder().decode(data)[1]['payload']['data']
23:01:07.556 T:3596088208 ERROR: File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
23:01:07.557 T:3596088208 ERROR: File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
23:01:07.557 T:3596088208 ERROR: File "/usr/lib/python2.7/json/decoder.py", line 36, in errmsg
23:01:07.557 T:3596088208 ERROR: TypeError: 'NoneType' object is not callable
23:01:07.557 T:3410514832 ERROR: CCurlFile::FillBuffer - Failed: Server returned nothing (no headers, no data)(52)
23:01:07.557 T:3410514832 ERROR: CCurlFile::Open failed with code 0 for http://localhost:33223/manifest?id=80098734|acceptencoding=gzip&seekable=0&user-agent=Mozilla%2f5.0%20(X11%3b%20CrOS%20armv7l%207647.78.0)%20AppleWebKit%2f537.36%20(KHTML%2c%20like%20Gecko)%20Chrome%2f59.0.3071.115%20Safari%2f537.36
23:01:07.558 T:3410514832 ERROR: AddOnLog: InputStream Adaptive: Could not open / parse mpdURL (http://localhost:33223/manifest?id=80098734)
23:01:07.560 T:3410514832 ERROR: CVideoPlayer::OpenInputStream - error opening [http://localhost:33223/manifest?id=80098734]
23:01:07.560 T:3410514832 NOTICE: CVideoPlayer::OnExit()
Netflix has changed something in the request system. Can you fix it?
@dreamhd2015 You´ve seen what I´ve written in this exact issue 18 hours ago? https://github.com/asciidisco/plugin.video.netflix/issues/197#issuecomment-337631939
@asciidisco If so, ask if it is believed that it could be repaired Thanks for answering
I think have fixed this issue in my fork: https://github.com/truedread/plugin.video.netflix specifically this commit: https://github.com/truedread/plugin.video.netflix/commit/84dce43ba513feb24ff501640c6886875f3c594c
Please let me know if it is OK to make a pull request @asciidisco
@trummerjo's code was specifically made for parsing payload chunks of length 1. Netflix is now delivering properly chunked payloads, and I fixed a bit of the code needed to properly parse and decrypt the chunks.
@truedread your fix your for me, thanks!
@truedread That was my thought as well, but haven’t had the time to dig in further. Please PR it. Thank you very much :)
@truedread Confirmed your fix works for me. Thanks a lot!
Released as 0.12.2. Thank you again for delivering this fix 👍
I'm submitting a ...
Prerequisites
Installation
Operating System
Not sure if this is on my end, since it seems the system refuse to resolve msftncsi.com Disabled my firewall, tested with a "working" VPN. Same error. Netflix works on Chrome though.