Page 1 of 1

[Tutorial] Run Kodi with Netflix

Posted: Tue Nov 05, 2019 10:33 am
by Mr.Roboto
Hey guys,
getting Netflix to run in Kodi on my Pi 3B like on LibreELEC took some effort I'd like to document here.

First install Kodi and make it autostart as root.

Download the CastagnaIT repository zip-file and install it in Kodi to get to the Netflix Addon. After installing the Netflix addon from CastagnaIT repository it should show up under Addons but won't start. I found this solution:
In order to get our add-ons working correctly, we need to add some additional dependencies and their recommended packages.

Code: Select all

sudo apt-get install python-pip python-crypto build-essential -y
sudo apt-get install python-all-dev python-setuptools python-wheel -y
sudo apt-get install python-crypto-dbg python-crypto-doc python-pip-whl -y
Now lets install our Python cryptography dependency.

Code: Select all

pip install pycryptodomex
To make sure our add-ons are finding our pycryptodomex module, lets add a symbolic link to the location.

Code: Select all

sudo ln -s /usr/lib/python2.7/dist-packages/Crypto /usr/lib/python2.7/dist-packages/Cryptodome
Now Netflix should start, but it doesn't play anything. We need to

Code: Select all

sudo apt-get install kodi-inputstream-adaptive
Reboot DietPi and start any Netflix video. It should guide you the Widevine DRM installation. After that we can play videos, but they lag. So last step is to go to InputStream Adaptive Addon settings and set video quality below 720p.