• 1
  • 166
  • 167
  • 168(current)
  • 169
  • 170
  • 227
Release Netflix Add-on [input-stream]
(2020-09-12, 12:25)DarrenHill Wrote: @StorageFan - thanks for that.

I've taken the liberty of cloning your post and adding it into the tips, tricks and step by step guides section (here) for general future reference by anyone.
Great. Thank you. I hope this will prevent other users who are not very experienced with Linux in general and not familiar with the structure of the QNAP QTS derivative in particular to have to comb through the internet and experience many failed attempts in a "try & error" approach, like I did.
Windows 10, HTC 12U+ cellphone, Sony TV with Android 8, Synology DS920+ & QNAP TBS-453DX
Reply
These:
Quote:ln -s /usr/lib/python2.7/dist-packages/Crypto /usr/lib/python2.7/dist-packages/Cryptodome
pip install Padding

are very wrong thing to do
point a package to other name could break other scripts and also the package itself may have unexpected errors with some internal operations

Crypto and Cryptodome are similar but are two different packages
as you can see here:
https://github.com/CastagnaIT/plugin.vid...o-packages

if you have import errors means that you have a sort of mix of packages installed
then you have to remove ALL crypto packages, and if possible install only: pycryptodomex


if qnap also needs to have also the package pycrypto installed
pycryptodomex can coexist with it then you can install without problem,
but i think it would be better if i reverse the imports in the NF add-on
so as to give importance first to pycryptodomex and fallback to pycrypto
This is the modified version:
https://www.dropbox.com/s/3ngmpc3ettxmw1...x.zip?dl=0

after this i will try to elaborate your instruction
when i have done i will send you a PM
so you can read and correct any errors
and then send me back the correct document
thanks for the instructions, you succeeded where many would have abandoned
Dev-Maintainer of InputStream Adaptive add-on, Netflix add-on ▫ Skills Python, C#, VB.NET and a bit of C++
Reply
(2020-09-12, 17:24)CastagnaIT Wrote: These:
Quote:ln -s /usr/lib/python2.7/dist-packages/Crypto /usr/lib/python2.7/dist-packages/Cryptodome
pip install Padding

are very wrong thing to do
point a package to other name could break other scripts and also the package itself may have unexpected errors with some internal operations

Crypto and Cryptodome are similar but are two different packages
as you can see here:
https://github.com/CastagnaIT/plugin.vid...o-packages

Well, I definitely installed the cryptodomex (with the X at the end!) package. Nonetheless in the directory /usr/lib/python2.7/dist-packages/ only a folder named Crypto could be found and your Plugin kept complaining about the missing library.

So since someone in this thread on github posted the symbolic link as a solution, I gave it a try and and it worked. (He got 16 thumbs up for this comment, so I would have never assumed that this was such a wrong thing to do)

Regarding the pip install Padding: I can take that out, since on my second re-run it didn't seem to be necessary. Then again I only un-installed HD Station and am not sure, if everything installed in the HD Station was automatically removed as well. So it might be that some residue of the previous Padding installation had stuck. That's why I left the command in there.
 
Quote:if you have import errors means that you have a sort of mix of packages installed
then you have to remove ALL crypto packages, and if possible install only: pycryptodomex
I do not have any errors at all anymore, after downloading the Padding.py as suggested by the person in this post a bit below the previous post, which resolved the last error message, everything works perfectly now.
 
Quote:if qnap also needs to have also the package pycrypto installed
pycryptodomex can coexist with it then you can install without problem,
but i think it would be better if i reverse the imports in the NF add-on
so as to give importance first to pycryptodomex and fallback to pycrypto
This is the modified version:
https://www.dropbox.com/s/3ngmpc3ettxmw1...x.zip?dl=0

after this i will try to elaborate your instruction
when i have done i will send you a PM
so you can read and correct any errors
and then send me back the correct document
thanks for the instructions, you succeeded where many would have abandoned
Yes, that sounds like a good plan. But I am not sure why you would want me to uninstall and re-install pycryptodomex again. I don't know why the installation of pycryptodomex did not result in a folder called Cryptodome in the expected place. Maybe the pip install --user pycryptodomex command installed it somewhere else?

But whatever happened, I can run KODI and the Netflix plugin from any account. I don't have to login as "admin" and also not as the user having installed "KODI" on my QNAP. So so far everything seems to work for me.
The only issue I experience is a slight flickering of the subtitles. But @thomas.rehberg  suggested that this might be caused by HD Station 4.0.10 and that I should downgrade back to 4.09 or earlier.

So how should I proceed now?
Windows 10, HTC 12U+ cellphone, Sony TV with Android 8, Synology DS920+ & QNAP TBS-453DX
Reply
(2020-09-12, 20:39)StorageFan Wrote:
(2020-09-12, 17:24)CastagnaIT Wrote: These:
Quote:ln -s /usr/lib/python2.7/dist-packages/Crypto /usr/lib/python2.7/dist-packages/Cryptodome
pip install Padding

are very wrong thing to do
point a package to other name could break other scripts and also the package itself may have unexpected errors with some internal operations

Crypto and Cryptodome are similar but are two different packages
as you can see here:
https://github.com/CastagnaIT/plugin.vid...o-packages

Well, I definitely installed the cryptodomex (with the X at the end!) package. Nonetheless in the directory /usr/lib/python2.7/dist-packages/ only a folder named Crypto could be found and your Plugin kept complaining about the missing library.

So since someone in this thread on github posted the symbolic link as a solution, I gave it a try and and it worked. (He got 16 thumbs up for this comment, so I would have never assumed that this was such a wrong thing to do)

Regarding the pip install Padding: I can take that out, since on my second re-run it didn't seem to be necessary. Then again I only un-installed HD Station and am not sure, if everything installed in the HD Station was automatically removed as well. So it might be that some residue of the previous Padding installation had stuck. That's why I left the command in there.
 
Quote:if you have import errors means that you have a sort of mix of packages installed
then you have to remove ALL crypto packages, and if possible install only: pycryptodomex
I do not have any errors at all anymore, after downloading the Padding.py as suggested by the person in this post a bit below the previous post, which resolved the last error message, everything works perfectly now.
 
Quote:if qnap also needs to have also the package pycrypto installed
pycryptodomex can coexist with it then you can install without problem,
but i think it would be better if i reverse the imports in the NF add-on
so as to give importance first to pycryptodomex and fallback to pycrypto
This is the modified version:
https://www.dropbox.com/s/3ngmpc3ettxmw1...x.zip?dl=0

after this i will try to elaborate your instruction
when i have done i will send you a PM
so you can read and correct any errors
and then send me back the correct document
thanks for the instructions, you succeeded where many would have abandoned
Yes, that sounds like a good plan. But I am not sure why you would want me to uninstall and re-install pycryptodomex again. I don't know why the installation of pycryptodomex did not result in a folder called Cryptodome in the expected place. Maybe the pip install --user pycryptodomex command installed it somewhere else?

But whatever happened, I can run KODI and the Netflix plugin from any account. I don't have to login as "admin" and also not as the user having installed "KODI" on my QNAP. So so far everything seems to work for me.
The only issue I experience is a slight flickering of the subtitles. But @thomas.rehberg  suggested that this might be caused by HD Station 4.0.10 and that I should downgrade back to 4.09 or earlier.

So how should I proceed now?

Yes better go back to 4.09 or even 4.07. Just sent you a PM where you can get the 4.07 version. This will fix the flickering, and you may not even need the changes applied to the later versions. The 4.10 version I cannot recommend at all, unfortunately.
Reply
@CastagnaIT I have an idea what might have caused the discrepancies between crypto and cryptodome. I just checked the installation locations for pycrypto and pycryptodomex and these are the results:

Image

So my suspicion is that my command
pip install --user pycryptodomex
installed the package "Cryptodome" not in the (expected) path /usr/lib/python2.7/dist-packages but instead into the path /root/.local/lib/python2.7/site-packages

So as a result only the originally installed "Crypto" was to be found in the /usr/lib/python2.7/dist-packages and that's why I had to add the symbolic link (to create a folder Cryptodome in the right location) and why the Padding.py file was missing (because it never came with the origianl V2.6.1 version of the Crypto package).

So my question is (since you said PyCrypto and PyCryptodomex can peacefully coexist): how can I tell my system to install the pycryptodomex library in the folder /usr/lib/python2.7/dist-packages and not in the wrong folder /root/.local/lib/python2.7/site-packages  ?

Because then I would not need any symbolic links and also no manual download of a Padding.py file, because it's all in the right place to begin with (I checked and /root/.local/lib/python2.7/site-packages/Cryptodome/Util does already contain a file called Padding.py). But I guess a symbolic link command like the following
ln -s /root/.local/lib/python2.7/site-packages/Cryptodome /usr/lib/python2.7/dist-packages/Cryptodome
would also not be to your liking, right?

So how do I tell the system to install the pycryptodome package into the right location?
Windows 10, HTC 12U+ cellphone, Sony TV with Android 8, Synology DS920+ & QNAP TBS-453DX
Reply
@StorageFan
seem that there are more python eviroments path
from what i understand:

your folder of installation is
/usr/lib/python2.7/dist-packages
this is a debian package folder

instead "pip install" use site-packages

i think you should try to install cryptodomex with this command (not sure if sudo is needed in your case)
sudo apt-get install python-pycryptodomex

but i am not sure that this type installation is available with pycryptodomex
then, if the package not exists you have to use "Crypto", if not already installed in (/usr/lib/python2.7/dist-packages):
sudo apt-get install python-pycryptodome
Dev-Maintainer of InputStream Adaptive add-on, Netflix add-on ▫ Skills Python, C#, VB.NET and a bit of C++
Reply
@CastagnaIT tl;dr: it worked.

So, what I did is to first uninstall the pycryptodomex package with pip uninstall pycryptdomex
Of course KODI and your Netflix plugin still worked after that, which confirms my suspicion that they were running on the already by default installed PyCrypto package.

So next I removed the symbolic link. Now your first command apt-get install python-pycryptodomex did not work (sudo is not needed, because I am always root due to the chroot necessity), because the package was not known. Also a apt-get update did not change that (also it updated some stuff successfully nonetheless).

So I went for your next suggestion apt-get install python-pycryptodome and that installed everything in the right place. A folder Cryptodome was subsequently to be found at /usr/lib/python2.7/dist-packages and also a Padding.py was located in the subfolder /Util

Image

as you can see, it is only version 3.4.7 though instead of 3.9.8 (the version number of the pycryptodomex package).

Anyhow, the most important thing is that KODI and the plugin still work as before.

So it would make sense to change my set of instructions above by eliminating the last two steps (the creation of the symbolic link and the download of Padding.py) and replacing them with a simple
apt-get install python-pycryptodome

Thanks for correcting my mistake. It didn't feel quite right to begin with (more like a hack).

Is it totally the same for your plugin if one uses the Pycryptodome package (V3.4.7) instead of Pycryptodomex package (V3.9.8)? There are no advantages or disadvantages of using one or the other?
Windows 10, HTC 12U+ cellphone, Sony TV with Android 8, Synology DS920+ & QNAP TBS-453DX
Reply
P.S.: If you give me the green light, I will change the set of instructions here in the forum (like I already did in my github post) accordingly and then it should be ready to be published on your site.

P.P.S.: more good news: I can even run KODI and your plugin after logging in with a different user without QNAP admin privileges. So apparently the installation is a general one and not limited to the admin user or users with admin privileges.

P.P.P.S.: do I have to use the apt-get command or could I just use this (newer) command instead:
apt install python-pycryptodome
Windows 10, HTC 12U+ cellphone, Sony TV with Android 8, Synology DS920+ & QNAP TBS-453DX
Reply
@StorageFan - you should also be able to edit the version of your guide in the tips, tricks and guide section.

If there are any issues in doing so just let me know and I can do it.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
> Is it totally the same for your plugin if one uses the Pycryptodome package (V3.4.7) instead of Pycryptodomex package (V3.9.8)? There are no advantages or disadvantages of using one or the other?

to our use there is no differences

> P.P.P.S.: do I have to use the apt-get command or could I just use this (newer) command instead:

there is no too much difference between the two commands
apt is more for end users
apt-get is more for dev
Dev-Maintainer of InputStream Adaptive add-on, Netflix add-on ▫ Skills Python, C#, VB.NET and a bit of C++
Reply
(2020-09-13, 15:24)DarrenHill Wrote: @StorageFan - you should also be able to edit the version of your guide in the tips, tricks and guide section.

If there are any issues in doing so just let me know and I can do it.
Everything is fine, but thanks for checking in.
For your information: I have corrected the instructions in the permanent post you had kindly created in the Tips, tricks, and step by step guides section and also in my post on github.

So both posts now follow the recommendations made by @CastagnaIT and thus should provide a clean solution.
@CastagnaIT , if you want me to change anything, please just tell me. Otherwise you can take these instructions and post (or link to them) on your github page in the Linux section to make life easier for QNAP users trying to install your plugin.

I have edited my original post in this thread here as well, to warn the readers to use my original solution and put instead a link to the permanent step by step guide in the top of that post. So people can still read it (in case the official route should not work for them), but are advised to follow the cleaner instructions instead. I hope that's a good solution for everybody.
Windows 10, HTC 12U+ cellphone, Sony TV with Android 8, Synology DS920+ & QNAP TBS-453DX
Reply
I installed it on nvidia shield tv on kodi. But there is no dolby atmos or vision from this app...
Reply
Just to let people know that the Netflix addon no longer able to play HD content on Sony Android TV KD-49XH9505 after the TV updated only SD streams are available, Sony support is no help as it is a 3rd party app, even if it was working correctly before the update. Also the Amazon VOD addon no longer works correctly. It plays HD streams but with blocking artifacts and audio sync issues
Reply
(2020-09-17, 12:14)prime5980 Wrote: Just to let people know that the Netflix addon no longer able to play HD content on Sony Android TV KD-49XH9505 after the TV updated only SD streams are available, Sony support is no help as it is a 3rd party app, even if it was working correctly before the update. Also the Amazon VOD addon no longer works correctly. It plays HD streams but with blocking artifacts and audio sync issues

Was this a major update (i.e. from Android 7 to Android 8) or just a minor firmware update?

I am asking as an owner of the Sony KD-55XE9005. I have upgraded to Android 8 over a year ago and installed KODI only recently and not experienced any issues with the content quality. I can't get 4k, but the upscaler of my Sony is so efficient, that I can't even really tell the difference between HD content and true 4k content.
Windows 10, HTC 12U+ cellphone, Sony TV with Android 8, Synology DS920+ & QNAP TBS-453DX
Reply
Hello. I've got a problem on my widescreen 21:9 monitor. Although both my monitor and the shows are all 21:9 I get black bars EVERY side of the screen AND a distorted image. I played with all the zoom setting but nothing would work correctly. Everything outside of netflix works fine.
I have to manually zoom around 1.13 and reduce pixel ratio to 0.82 every time to show correctly.
Is there any way to persist those for netflix only?
Reply
  • 1
  • 166
  • 167
  • 168(current)
  • 169
  • 170
  • 227

Logout Mark Read Team Forum Stats Members Help
Netflix Add-on [input-stream]14