Netflix plugin stopped working

Yes. I get all that. I see the background stuff starting and I am not connecting through a VPN. This is what ends up in thoe log:

2020-10-01 19:15:09.172 T:3528450784 ERROR: [plugin.video.netflix (0)] An error has occurred in the library auto update: HTTPSConnectionPool(host=‘www.netflix.com’, port=443): Max retries exceeded with url: /api/shakti/vff980d5b/metadata?materialize=false&withSize=false&isVolatileBillboardsEnabled=true&original_path=%2Fshakti%2Fvff980d5b%2FpathEvaluator&authURL=1600355035749.ESEi37JIbB0Vu45T6k0vF4pr0pQ%3D&isTop10Supported=true&movieid=81019069&routeAPIRequestsThroughFTL=false&categoryCraversEnabled=false&drmSystem=widevine&_=1601568909055 (Caused by NewConnectionError(‘<urllib3.connection.VerifiedHTTPSConnection object at 0xe8198cb0>: Failed to establish a new connection: [Errno -2] Name or service not known’,))
2020-10-01 19:15:09.186 T:3528450784 ERROR: [plugin.video.netflix (0)] Traceback (most recent call last):
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/kodi/library.py”, line 220, in auto_update_library
clear_on_cancel)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/kodi/library.py”, line 293, in _update_library
notify_errors=show_prg_dialog):
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/kodi/library_tasks.py”, line 42, in execute_library_task
jobs_data = self.compile_jobs_data(videoid, task_type, nfo_settings)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py”, line 164, in timing_wrapper
return func(*args, **kwargs)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/kodi/library_tasks.py”, line 109, in compile_jobs_data
metadata = self.ext_func_get_metadata(videoid, True) # pylint: disable=not-callable
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py”, line 164, in timing_wrapper
return func(*args, **kwargs)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/nfsession_ops.py”, line 191, in get_metadata
metadata_data = self._metadata(video_id=parent_videoid), None
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/common/cache_utils.py”, line 84, in wrapper
output = func(*args, **kwargs)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/nfsession_ops.py”, line 209, in metadata
'
‘: int(time.time() * 1000)})
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/access.py”, line 83, in get_safe
return self.get(endpoint, **kwargs)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py”, line 38, in get
**kwargs)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py”, line 164, in timing_wrapper
return func(*args, **kwargs)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py”, line 49, in _request_call
return self._request(method, endpoint, None, **kwargs)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/session/http_requests.py”, line 65, in request
data=data)
File “/home/osmc/.kodi/addons/script.module.requests/lib/requests/sessions.py”, line 546, in get
return self.request(‘GET’, url, **kwargs)
File “/home/osmc/.kodi/addons/script.module.requests/lib/requests/sessions.py”, line 533, in request
resp = self.send(prep, **send_kwargs)
File “/home/osmc/.kodi/addons/script.module.requests/lib/requests/sessions.py”, line 646, in send
r = adapter.send(request, **kwargs)
File “/home/osmc/.kodi/addons/script.module.requests/lib/requests/adapters.py”, line 516, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host=‘www.netflix.com’, port=443): Max retries exceeded with url: /api/shakti/vff980d5b/metadata?materialize=false&withSize=false&isVolatileBillboardsEnabled=true&original_path=%2Fshakti%2Fvff980d5b%2FpathEvaluator&authURL=1600355035749.ESEi37JIbB0Vu45T6k0vF4pr0pQ%3D&isTop10Supported=true&movieid=81019069&routeAPIRequestsThroughFTL=false&categoryCraversEnabled=false&drmSystem=widevine&
=1601568909055 (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0xe8198cb0>: Failed to establish a new connection: [Errno -2] Name or service not known’,))

My gut feeling is that there seem to be an error in the name resolution on your end, searched the addons issue tracker and others had the same problem but always resolved it by changing the DNS server to 8.8.8.8 (googles dns service).

OK. But here stuff differs. Ie after running your script, there is no “repository.castagnait-1.0.1.zip”, instead I have “plugin.video.netflix.zip” and select that. Then there is no CastagnaIT repository?

Edit: Changing DNS to 8.8.8.8 makes no difference. May I add that Netflix used to work before

Seems i got to check out the script then, should have downloaded the repository. Will do that in 1-2 hors from now. I’m the family laundry-slave, and i got the community laundry room booked to 19.00. But I will try to look at this between running machines.

You might want to remove the old, automation script and try again?
Ssh into your osmc-device and run these commands:

rm netflix_prep_install.sh
wget https://raw.githubusercontent.com/zjoasan/netflix-install-script/master/netflix_prep_install.sh chmod +x netflix_prep_install.sh
chmod +x netflix_prep_install.sh

OK. Unfortunatelty did someone just monopolise the TV, running the netflix that came with the TV, but I pastted in your commands:

osmc@osmc:~$ rm netflix_prep_install.sh
rm: cannot remove ‘netflix_prep_install.sh’: No such file or directory
osmc@osmc:~$ wget https://raw.githubusercontent.com/zjoasan/netflix-install-script/master/netflix_prep_install.sh chmod +x netflix_prep_install.sh
–2020-10-01 19:43:57-- https://raw.githubusercontent.com/zjoasan/netflix-install-script/master/netflix_prep_install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, …
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 2061 (2.0K) [text/plain]
Saving to: ‘netflix_prep_install.sh’

netflix_prep_instal 100%[===================>] 2.01K --.-KB/s in 0.001s

2020-10-01 19:43:57 (2.31 MB/s) - ‘netflix_prep_install.sh’ saved [2061/2061]

–2020-10-01 19:43:57-- http://chmod/
Resolving chmod (chmod)… failed: Name or service not known.
wget: unable to resolve host address ‘chmod’
–2020-10-01 19:43:57-- http://+x/
Resolving +x (+x)… failed: Name or service not known.
wget: unable to resolve host address ‘+x’
–2020-10-01 19:43:57-- http://netflix_prep_install.sh/
Resolving netflix_prep_install.sh (netflix_prep_install.sh)… failed: Name or service not known.
wget: unable to resolve host address ‘netflix_prep_install.sh’
FINISHED --2020-10-01 19:43:57–
Total wall clock time: 0.8s
Downloaded: 1 files, 2.0K in 0.001s (2.31 MB/s)
osmc@osmc:~$ chmod +x netflix_prep_install.sh

Ouch, was something wrong there, should be:

rm netflix_prep_install.sh
wget https://raw.githubusercontent.com/zjoasan/netflix-install-script/master/netflix_prep_install.sh
chmod +x netflix_prep_install.sh

rm netflix_prep_install.sh
osmc@osmc:~$ wget https://raw.githubusercontent.com/zjoasan/netflix-install-script/master/netflix_prep_install.sh
–2020-10-01 19:47:00-- https://raw.githubusercontent.com/zjoasan/netflix-install-script/master/netflix_prep_install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, …
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 2061 (2.0K) [text/plain]
Saving to: ‘netflix_prep_install.sh’

netflix_prep_instal 100%[===================>] 2.01K --.-KB/s in 0.001s

2020-10-01 19:47:00 (1.45 MB/s) - ‘netflix_prep_install.sh’ saved [2061/2061]

osmc@osmc:~$ chmod +x netflix_prep_install.sh
osmc@osmc:~$

When running, I see:

netflix-repo.zip: Permission denied
./netflix_prep_install.sh: line 37: /etc/sudoers: Permission denied

Hmm strange there is nothing that should have messed up the file permissions like that, looking in the script. Did you run it as osmc user in the owmc user home folder?

Just ran it on my system without errors, but i found a weakness in the script, if you had downloaded the netflix_repo.zip once it farks up.

Changed that behavior, and if you delete the last downloaded netflix_prep_install.sh, and download it again and run it, it should work, the problem i saw was that i renamed the download, but never the “check for older version”.

Thanks again @AndersG

I tried installing with script metod. After that, libwidvine installed but there is an error. When i press play nothing happens. I see up-right the name of the movie for a second and then nothing.

Kodi log:

2020-10-02 00:20:00.318 T:3095360224 ERROR: [script.module.inputstreamhelper] [u’ldd’, u’/home/osmc/.kodi/cdm/libwidevinecdm.so’] cmd failed.
2020-10-02 00:20:00.318 T:3095360224 ERROR: [script.module.inputstreamhelper] Failed to check for missing Widevine libraries.
2020-10-02 00:20:00.319 T:3095360224 ERROR: EXCEPTION: Invalid setting type
2020-10-02 00:20:00.320 T:3095360224 NOTICE: [script.module.inputstreamhelper] Widevine update check was made on 2020-10-01 23:56
2020-10-02 00:20:00.572 T:4065099776 NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.netflix/play/movie/81001887/?profile_guid=ODAURZY6UNDEFHAUVIVTQOCYRY
2020-10-02 00:20:00.574 T:3078574816 NOTICE: Creating InputStream
2020-10-02 00:20:02.619 T:3078574816 ERROR: AddOnLog: InputStream Adaptive: Unable to load widevine shared library (/home/osmc/.kodi/cdm/libwidevinecdm.so)
2020-10-02 00:20:02.619 T:3078574816 ERROR: AddOnLog: InputStream Adaptive: OpenDRMSystem failed
2020-10-02 00:20:02.622 T:3078574816 ERROR: CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.netflix/play/movie/81001887/?profile_guid=ODAURZY6UNDEFHAUVIVTQOCYRY]
2020-10-02 00:20:02.622 T:3078574816 NOTICE: CVideoPlayer::OnExit()
2020-10-02 00:20:02.643 T:4065099776 NOTICE: CVideoPlayer::CloseFile()
2020-10-02 00:20:02.696 T:4065099776 NOTICE: VideoPlayer: waiting for threads to exit
2020-10-02 00:20:02.696 T:4065099776 NOTICE: VideoPlayer: finished waiting
2020-10-02 00:20:11.225 T:3095360224 ERROR: [plugin.video.netflix (1)] Traceback (most recent call last):
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py”, line 33, in wrapper
func(*args, **kwargs)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py”, line 249, in run
success = route(pathitems)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py”, line 90, in lazy_login_wrapper
return func(*args, **kwargs)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py”, line 126, in route
_execute(nav_handler, pathitems[1:], G.REQUEST_PARAMS)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py”, line 153, in _execute
executor(pathitems=pathitems)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py”, line 164, in timing_wrapper
return func(*args, **kwargs)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory_utils.py”, line 34, in set_custom_viewmode
override_partial_setting_id = func(*args, **kwargs)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory.py”, line 105, in home
list_data, extra_data = common.make_call(‘get_mainmenu’) # pylint: disable=unused-variable
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py”, line 164, in timing_wrapper
return func(*args, **kwargs)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/common/ipc.py”, line 88, in make_call
return make_addonsignals_call(callname, data)
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/common/ipc.py”, line 160, in make_addonsignals_call
timeout_ms=IPC_TIMEOUT_SECS * 1000)
File “/home/osmc/.kodi/addons/script.module.addon.signals/lib/AddonSignals.py”, line 176, in makeCall
return CallHandler(signal, data, source_id, timeout_ms, use_timeout_exception).waitForReturn()
File “/home/osmc/.kodi/addons/script.module.addon.signals/lib/AddonSignals.py”, line 118, in waitForReturn
raise OSError
OSError
2020-10-02 00:20:16.212 T:3268403936 ERROR: CPythonInvoker(23, /home/osmc/.kodi/addons/plugin.video.netflix/addon.py): script didn’t stop in 5 seconds - let’s kill it
2020-10-02 00:20:16.213 T:3268403936 ERROR: GetDirectory - Error getting plugin://plugin.video.netflix/directory/home/?switch_profile_guid=ODAURZY6UNDEFHAUVIVTQOCYRY
2020-10-02 00:20:16.235 T:4065099776 WARNING: CGUIWindowManager - HandleAction - ignoring action 92, because topmost modal dialog closing animation is running
2020-10-02 00:20:16.258 T:3095360224 WARNING: Previous line repeats 1 times.
2020-10-02 00:20:16.258 T:3095360224 WARNING: Attempt to use invalid handle 1
2020-10-02 00:20:16.273 T:4065099776 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflix/directory/home/?switch_profile_guid=ODAURZY6UNDEFHAUVIVTQOCYRY) failed
2020-10-02 00:20:16.279 T:3095360224 ERROR: Unable to find plugin
2020-10-02 00:20:16.279 T:3095360224 ERROR: GetDirectory - Error getting plugin://
2020-10-02 00:20:16.280 T:4065099776 ERROR: CGUIMediaWindow::GetDirectory(plugin://) failed

What i did wrong?

When you first start a video in netflix plugin, it will notice you dont have libwidvine installed and help you install it. (takes a while, will download an image and extract the latest liwidvine, and install it. Let it run as root, when it asks)

Maybe here is the problem? I didnt saw any questions about ROOT.

There was an pull request to my script about inputstream adaptive, installed from debiann. I ignored it, since I thought it came pre-installed in Osnc.

Before I add it to the script, would you @angelitto mind try this at ssh-shell:

sudo apt-get install kodi-inputstream-adaptive

Thanks

Error…

osmc@osmc-angelitto:~$ sudo apt-get install kodi-inputstream-adaptive
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package kodi-inputstream-adaptive
osmc@osmc-angelitto:~$ osmc@osmc-angelitto:~$ sudo apt-get install kodi-inputstream-adaptive
-bash: osmc@osmc-angelitto:~$: command not found
osmc@osmc-angelitto:~$ Reading package lists… Done
-bash: Reading: command not found
osmc@osmc-angelitto:~$ Building dependency tree
-bash: Building: command not found
osmc@osmc-angelitto:~$ Reading state information… Done
-bash: Reading: command not found
osmc@osmc-angelitto:~$ E: Unable to locate package kodi-inputstream-adaptive
-bash: E:: command not found

Cut and paste error :wink:

But it does not look like kodi-inputstream-adaptive is the correct name.

osmc@osmc-angelitto:~$ sudo apt-get install kodi-inputstream-adaptive
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package kodi-inputstream-adaptive
osmc@osmc-angelitto:~$

Thats i get.
But are you sure that the error its about ”Input Stream Adaptive” Because its installed and its 2.4.5 version.

I think, when i installed the script, i saw ”Permission denied”, or something like that. Maybe i should manual install all these again?

sudo apt-get install python-crypto
sudo apt-get install build-essential python-pip
sudo pip install -U setuptools
sudo pip install wheel
sudo pip install pycryptodomex

Thanks for eliminating that. Thought as much, there is such a package for x86, and but on armhf it’s bundled with other kodi binaries.

I will have to do a clean install and get to the bottom of this.

Thanks @angelitto

Are you talking about this?

Shouldn’t need to do that, if you ran the script, the problem probebly a cured later. The only warnings I got when I ran the script earlier tonight, was locale errors.

Ok. So i guess i will wait for you to get to the bottom of this.
Thanks for your help.

I found the error, i was talking about:

./netflix_prep_install.sh: line 38: /etc/sudoers: Permission denied

We already have inputstream adaptive in OSMC. It just needs enabling

You too? Anders had that issue, found the culprit in the script I thought.

But now I think I got it give a few minutes and I’ll fix it.

1 Like

Ok, i hope you’ll fix it.
BTW, these are the lines i see there:

if [ -f “./netflix-repo.zip” ]; then
if [ -f “./netflix-repo.zip.old” ]; then
rm netflix-repo.zip.old
fi
mv netflix-repo.zip netflix-repo.zip.old

fi