Kodi Community Forum

Full Version: Netflix Add-on [input-stream]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2020-08-30, 20:59)Sholander Wrote: [ -> ]
(2020-08-30, 17:54)StorageFan Wrote: [ -> ]Thanks for your feedback! (Finally a response, I was afraid this thread might be dead). But I am not on Rasbian, I am within the QNAP QTS environment and the sudo command isn't even recognized, when I logon with telnet into the account called "admin" (which is the only native account with admin privileges. QTS does not seem to feature or support an account called "root". So sudo seems to not work. And apt wasn't a recognized command as well. :-(
Didn't know much about QNAP QTS, but after a quick search, once you ssh to it as admin you have full root privileges. If I understand things correctly, then "sudo" is not needed. What happens when you run those commands without sudo?
As I mentioned above, when I just enter apt oder pip in the command line, I get the same response: command not found:

Image

As you can see, the only thing that works is the command help and what's listed under help... :-(
It's possible to watch netiflix free content (netflix.com/watch-free) using this add-on?
(2020-08-31, 19:12)jaum20 Wrote: [ -> ]It's possible to watch netiflix free content (netflix.com/watch-free) using this add-on?
Are you asking me to help me find a solution for my problem or is this a completely separate question?

If the first, then no. My Netflix plugin refuses to work at all.
If the second, then I don't really know the answer for sure, because I am a paying customer. But I would assume that free content should be accessible, since the Plugin seems to mainly map the usual Netflix functions into the KODI interface.
@thomas.rehberg, according to your posts you seem to have successfully installed the Netflix plugin for KODI on your QNAP.

Can you please help me how to get the apt and pip commands working to install the missing Crypto package?

@CastagnaIT are you still reading this forum?
If I get the installation done, I would be willing to write a quick step by step how-to for other QNAP users, so maybe you could add that to your "How to installing on: Linux distributions" section on github?
You need to have the qnap maintainers build and package pycryptodome.
(2020-09-03, 00:25)Fuzzard Wrote: [ -> ]You need to have the qnap maintainers build and package pycryptodome.
Ok. Sounds like good advice, but unfortunately I do not have a lot of shell experience with Linux.

Where or how do I get these QNAP maintainers and the package pycryptodome?
And which commands do I have to issue to get these things properly installed on my QNAP?
Honestly, you are going to have to talk to whoever does the packaging for qnap. They should know their system best.

Essentially point them to https://pypi.org/project/pycryptodome/
Ask them to add a package that installs a compiled version for qnap architectures.
For "Dark" season 1 on Netflix, I'm getting atmos. But on season 2 I'm getting 5.1, no atmos. Can anyone confirm if they are getting atmos for season 2?
(2020-09-03, 02:01)Fuzzard Wrote: [ -> ]Honestly, you are going to have to talk to whoever does the packaging for qnap. They should know their system best.

Essentially point them to https://pypi.org/project/pycryptodome/
Ask them to add a package that installs a compiled version for qnap architectures.

I am not sure if QNAP does support manual installation of packages at all. A friend of mine who used to play around with Linux distributions over 20 years ago (but doesn't know QNAP QTS either) gave me some commands to try out. And according to those, QNAP doesn't feature any (known) package manager. He assumed that they don't want people to mess up the system using the shell command line.

But it must be possible. I have seen people talk in this forum about their Netflix-plugin installation on their QNAP.

I just hope that one of them will stumble over my posts eventually. Or maybe the developer of the plugin himself can shed some light.
I extremely doubt Castagna would have anything further to add. The error is because of pycryptodome is missing. It's a binary python module, so must be compiled for the architecture of the system.
You either need to dig into cross compiling for the system, or seek help from the qnap support forums who may be able to guide you further.
i do not know QNAP
i have to integrate some new install instructions in wiki?

let me know what i should add

i do not have followed all discussion i am a bit busy with the login problems
(2020-09-03, 15:54)CastagnaIT Wrote: [ -> ]i do not know QNAP
i have to integrate some new install instructions in wiki?

let me know what i should add

i do not have followed all discussion i am a bit busy with the login problems
Only for people trying to install the Netflix plugin on a QNAP system.

Apparently the QTS (QNAP OS) does not come with a (known) package manager installed and commands like apt or pip are not found when you try to execute them as admin (the only root account in QTS).

I will add the instructions as soon as I have managed to install the Crypto package. If @thomas.rehberg doesn't respond soon, I will send a request to the QNAP support. But I am afraid they most likely won't respond to someone trying to "hack" the system from the admin shell and not even knowing the basics of installing package managers. But maybe I will be positively surprised.
I just googled a bit and found out that apparently Entware is a good packet manager for QNAP.
First I ran into an old thread recommending the installation of entware-ng 0.97. I installed it in the AppCenter using the QNAP Club repository. But that failed to the point that I could enter the command okpg but without ANY RESPONSE AT ALL. Not even an error message.

So I googled further and found out that Entware-ng and Entware 3.x have merged and are now available as Entware 1.02 in the QNAP Club repository. So I uninstalled Entware-ng and installed Entware 1.02.

Again successfully to the point that I could enter the command
opkg update
and
opkg upgrade
and got a reasonable response from the shell.

But when I tried to execute opkg install python-pip I got this error message:
----------------------
[~] # opkg install python-pip
Unknown package 'python-pip'.
Collected errors:
 * opkg_install_cmd: Cannot install package python-pip.
----------------------
Apparently that Entware doesn't come with the python-pip package?!?!

Also trying to install gcc just led to this result:
----------------------
[~] # opkg install gcc
Installing gcc (7.4.0-5) to root...
Downloading http://bin.entware.net/x64-k3.2/gcc_7.4.0-5_x64-3.2.ipk
Installing zlib (1.2.11-3) to root...
Downloading http://bin.entware.net/x64-k3.2/zlib_1.2...64-3.2.ipk
Installing libiconv-full (1.11.1-4) to root...
Downloading http://bin.entware.net/x64-k3.2/libiconv...64-3.2.ipk
Installing libintl-full (0.19.8.1-2) to root...
Downloading http://bin.entware.net/x64-k3.2/libintl-...64-3.2.ipk
Installing libbfd (2.27-1) to root...
Downloading http://bin.entware.net/x64-k3.2/libbfd_2...64-3.2.ipk
Installing libopcodes (2.27-1) to root...
Downloading http://bin.entware.net/x64-k3.2/libopcod...64-3.2.ipk
Installing objdump (2.27-1) to root...
Downloading http://bin.entware.net/x64-k3.2/objdump_...64-3.2.ipk
Installing ar (2.27-1) to root...
Downloading http://bin.entware.net/x64-k3.2/ar_2.27-1_x64-3.2.ipk
Installing binutils (2.27-1) to root...
Downloading http://bin.entware.net/x64-k3.2/binutils...64-3.2.ipk
Configuring zlib.
Configuring libiconv-full.
Configuring libintl-full.
Configuring libbfd.
Configuring libopcodes.
Configuring objdump.
Configuring ar.
Configuring binutils.
Configuring gcc.
There are no *-dev packages in Entware(with few exceptions)!
Please install headers as described in the wiki:
https://github.com/Entware/Entware/wiki
-----------------------------

Any ideas what I am doing wrong? This is so frustrating. Outdated information popping up as the first hits on Google, then seemingly doing it right and still failing.

Why isn't there any information or a set of instructions for QNAP on how to install the cryptodomex package that still and simply works in 2020?
Ok, I seem to have gotten one step closer. I did the folllowing things successfully! (listed very briefly. I will post a full How-to once I got all issues resolved and the plugin working):

1. Install Entware-std 1.02 through QNAP AppCenter
after logging into the admin account via telnet:
2. successfully executed opkg update and opkg upgrade
3. successfully executed opkg install git
4. failed to execute opkg install python-pip
→ Unknown package 'python-pip'.

5. then tried and successfully executed opkg python3-pip
6. successfully executed pip install --upgrade setuptools
that resulted in the following message:
WARNING: You are using pip version 19.2.3, however version 20.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

7. successfully executed pip install --upgrade pip
which resulted in an upgrade of pip to 20.2.2

8. failed to execute opkg install build-essential
→ Unknown package 'build-essential'.

9. pip install pycryptodomex
which resulted after a lot of ASCII art in the following final message:
-----------------------
Installing collected packages: pycryptodomex
Successfully installed pycryptodomex-3.9.8
-----------------------

Looks kind of like a success (mostly), doesn't it?

So apart from failing to install the pip command with python (but being successfuly using python3 instead) and failing to install the build-essentials package, everything seemed to work out.

Unfortunately if I start up KODI, I still get the same Netflix Plugin Error message like before.

So I again turned on the logfile and still get the same error message:
--------------------------------------------------------------------------------------------
2020-09-04 02:07:13.599 T:139663770790016 DEBUG: ------ Window Init (DialogBusy.xml)
------ 2020-09-04 02:07:13.663 T:139661426095872 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named Cryptodome
Traceback (most recent call last):
File "/opt/Kodi18/.kodi/addons/plugin.video.netflix/addon.py", line 13, in <module> from resources.lib.run_addon import run
File "/opt/Kodi18/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 16, in <module> from resources.lib.common.exceptions import (HttpError401, InputStreamHelperError, MbrStatusNeverMemberError,
File "/opt/Kodi18/.kodi/addons/plugin.video.netflix/resources/lib/common/__init__.py", line 15, in <module> from .credentials import *
File "/opt/Kodi18/.kodi/addons/plugin.video.netflix/resources/lib/common/credentials.py", line 25, in <module> from Cryptodome import Random ImportError: No module named Cryptodome
-->End of Python script error report<--
2020-09-04 02:07:13.663 T:139661426095872 DEBUG: onExecutionDone(4, /opt/Kodi18/.kodi/addons/plugin.video.netflix/addon.py)
2020-09-04 02:07:13.667 T:139661426095872 INFO: Python interpreter stopped
2020-09-04 02:07:13.667 T:139661426095872 DEBUG: Thread LanguageInvoker 139661426095872 terminating
2020-09-04 02:07:13.671 T:139661733263104 ERROR: GetDirectory - Error getting plugin://plugin.video.netflix/
2020-09-04 02:07:13.671 T:139661733263104 DEBUG: Thread waiting 139661733263104 terminating
2020-09-04 02:07:13.676 T:139663770790016 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
2020-09-04 02:07:13.677 T:139663770790016 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflix/) failed
2020-09-04 02:07:13.677 T:139663770790016 DEBUG: CGUIMediaWindow::GetDirectory () 2020-09-04 02:07:13.677 T:139663770790016
DEBUG: ParentPath = [plugin://plugin.video.netflix/]
--------------------------------------------------------------------------------------------

Sigh... anybody any idea what I am still missing?
Is this build-essential package relevant somehow? If so, how can I install that? Googling "install build-essential on QNAP" only produced results from forum discussions prior to the year 2013!

Please! I feel already so close to the finish line.
Sorry, I forgot to include the link to the new full logfile after installing the cryptodomex package: https://paste.kodi.tv/ohuyovikuf

And sorry for the many posts, but the forum still does not allow me to edit my posts and add things like the missing URL... Sad