With Kodi 18 and inputstream, we can finally use DRM protected streams like used by Amazon and Netflix!
Get Kodi 18
Log in via ssh and update your system
~$ sudo apt-get update && sudo apt-get dist-upgrade
Most likely you are on Kodi version 17 (how to check?). We need Kodi 18 to work properly with Netflix and Amazon Instant Video, since from this version DRM and input stream are properly supported.
If you are still on version 17, add this line to /etc/apt/sources.list to install the Kodi 18 test builds for OSMC.
Make sure you backup your system before proceeding. Check here for the necessary steps to upgrade. Reboot after the process has finished. You should be now on Kodi 18. Download now the repository zip-files for the Netflix Addon by asciidisco and the Instant Video Addon by Sandmann79.
~$ wget https://github.com/Sandmann79/xbmc/releases/download/v1.0.2/repository.sandmann79.plugins-1.0.2.zip
and go to Settings -> Addons -> Install from zip file. After that you can install the two video addons from their respective repositories.
Amazon Instant Video
Setup the Amazon-Addon by choosing “Playback with” as “Input Stream” and adding your login data in “Connection”. Within the Inputstream Settings set the streaming quality to “1080p” instead of “Max”. The Addon may be unresponsible at first, since there will be a database created that takes a lot of computing power. If it crashes, try again after rebooting.
For Netflix to work, we have to add some crypto-package (pycryptodomex) that should usually be installable with python-pip. However this did not work for me, so I fumbled a bit, to add the dependency differently. But maybe they fixed this issue now. Just open the kodi log in you SSH session
~$ tail -f /home/osmc/.kodi/temp/kodi.log
and run the addon (you will have to add an account first). If everything is fine, enjoy. If on the other hand a python error is logged that tells you something about a not found Cryptodome, proceed as follows. First, we install the general crypto-package:
~$ sudo apt-get install python-crypto
Somehow the Padding.py file is requested by the Netflix-Addon, but is not installed by python-crypto, so we add it manually:
~$ wget https://pypi.python.org/packages/d6/99/56ac930e35394c93440f1a6e254cf4573098503ff4c1851e820600a46a85/pycryptodomex-3.4.7.tar.gz
~$ tar -xvf pycryptodomex-3.4.7.tar.gz
~$ sudo cp pycryptodomex-3.4.7/lib/Crypto/Util/Padding.py /usr/lib/python2.7/dist-packages/Crypto/Util/
At the end, we create a symbolic link “Cryptodome” because the files are expected to be there:
~$ sudo ln -s /usr/lib/python2.7/dist-packages/Crypto /usr/lib/python2.7/dist-packages/Cryptodome
You should now got rid of errors and your Netflix addon yould be able to set your account data and watch the content.