[HOW-TO ALL PLATFORMS]Can I use Netflix on OSMC?(post 4)

Oops. My bad.

I used this script to install the NetFlix addon and never noticed it was specifically for OSMC.

I’ll look elsewhere.


I boys & girl… i have found this thread by google and it’s very usefull for me for correct install the pycryptodome components on my actually OSMC setup on a Raspberry Pi2.

Whitout this component installed i can’t complete the login procedure whit the DAZN addon…

But right now when try to open a Dazn video i obtain this errors in kodi.log:

2021-08-26 13:40:21.909 T:3513     INFO <general>: initializing python engine.
2021-08-26 13:40:30.743 T:3513     INFO <general>: CPythonInvoker(22, /home/osmc/.kodi/addons/plugin.video.dazn/addon.py): script successfully run
2021-08-26 13:40:32.631 T:3513     INFO <general>: initializing python engine.
2021-08-26 13:40:33.712 T:3513     INFO <general>: CPythonInvoker(22, /home/osmc/.kodi/addons/plugin.video.dazn/addon.py): script successfully run
2021-08-26 13:40:35.477 T:3513     INFO <general>: initializing python engine.
2021-08-26 13:40:36.493 T:3513     INFO <general>: CPythonInvoker(22, /home/osmc/.kodi/addons/plugin.video.dazn/addon.py): script successfully run
2021-08-26 13:40:36.593 T:340      INFO <general>: VideoPlayer::OpenFile: plugin://plugin.video.dazn/?mode=play&title=Milan+TV&id=11gr3fqct0m611fvltqbqh7bu1&params=10u4zu6e8s5t30cjimrl958zw&verify_age=False
2021-08-26 13:40:36.599 T:3519     INFO <general>: Creating InputStream
2021-08-26 13:40:36.601 T:3519    ERROR <general>: CInputStreamAddon::Supports - 'inputstreamaddon' has been deprecated, please use `#KODIPROP:inputstream=inputstream.adaptive` instead
2021-08-26 13:40:36.603 T:3519     INFO <general>: AddOnLog: inputstream.adaptive: SetVideoResolution (1920 x 1080)
2021-08-26 13:40:36.989 T:3519     INFO <general>: AddOnLog: inputstream.adaptive: Successfully parsed manifest file. #Periods: 1, #Streams in first period: 2, Type: live, Download speed: 5544045.2746 Bytes/s
2021-08-26 13:40:36.992 T:3519    ERROR <general>: AddOnLog: inputstream.adaptive: Unable to load widevine shared library (/home/osmc/.kodi/cdm/libwidevinecdm.so)
2021-08-26 13:40:36.992 T:3519    ERROR <general>: AddOnLog: inputstream.adaptive: OpenDRMSystem failed
2021-08-26 13:40:36.996 T:3519    ERROR <general>: CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.dazn/?mode=play&title=Milan+TV&id=11gr3fqct0m611fvltqbqh7bu1&params=10u4zu6e8s5t30cjimrl958zw&verify_age=False]
2021-08-26 13:40:36.996 T:3519     INFO <general>: CVideoPlayer::OnExit()
2021-08-26 13:40:36.997 T:3519     INFO <general>: ADDON: Dll Destroyed - InputStream Adaptive
2021-08-26 13:40:37.033 T:340      INFO <general>: CVideoPlayer::CloseFile()
2021-08-26 13:40:37.033 T:340      INFO <general>: VideoPlayer: waiting for threads to exit
2021-08-26 13:40:37.033 T:340      INFO <general>: VideoPlayer: finished waiting

Apparently the winevine drm it’s correctly located on cdm folder but i don’t understand because there’s no works.
Ah… i have also try to install the actually netflix addons and it’s appears same error related kodi.log… this is the cause i try to ask here for fix this issue :slight_smile:

Joakim, you might save a few people a few minutes by mentioning how to do this in Kodi 19. :slightly_smiling_face: As far as I can tell you just need to change “python” to “python3” and “pip” to “pip3”? But if you’re going to include this info at all, you ought to include both Leia and Matrix versions.

So true, I should update #4. It’s on the ToDo-list. I’ve updated the script again, since there was a simple typeO that made detecting version wrong, now the script should work in v.19 installs too.

But I’ll rewrite post#4 the next few days,

Edit: changes done to post number 4, hope they are okey.

1 Like

@FaustoGSR I don’t know the Dazn addon, but if it uses libwidevine, does it install inputstream.helper addon? which helps install libwidevine, Netflix addon uses it if there is no libwidevine installed.

Yes i have already installed the inputstream.helper…

Otherwise i have resolved my issue this afternoon after so many attemps :slight_smile:

What i simply do ?
I remove the file libwidevinecdm.so…
After that i have used the option “(Re)Install CDM” from inputstream.helper and after one or two step a answer yes to confirm an installation of an old version of CDM library.
After the download it’s completed and the extraction/installation of library it’s completed i have look the information and i see it’s installed the CDM 4.10.1679.0.

After that i have reboot Kodi on my pi2 and BAAAAM!
Now DAZN it’s works without any issue…

At this point this thread it’s very usefull for me for obtain the pycryptodomex installation on my Pi2 OSMC setup…

1 Like

@joakim_s - This doesn’t seem to work under Bullseye. I think the first line may need to change to cryptography rather than crypto. I don’t know what the second line should be; it errors with -bash: python3-pip: command not found .

That is supposed to be one line
sudo apt-get install python3-crypto python3-pip python3-pycryptodome
not too lines!

Okay, sorry. :slightly_smiling_face:

I think “crypto” still needs to change to “cryptography”, though…?

1 Like

I will look into it during the day, was hoping to merge my 2 versions of libwidevine prep script, and the main purpose of that script is to install those pesky python libs. But the Mrs got me running errands and kids have to be picked upp in a few hours. So I’m hoping t have an answer in 8-9 hours.

Haven’t tested it yet, but there is no python3_crypto in bullseye but python3_cryptography. So I’m 98% confident you are right, it rings a bell that 've done it before.