• 1
  • 165
  • 166
  • 167(current)
  • 168
  • 169
  • 227
Release Netflix Add-on [input-stream]
(2020-09-05, 13:43)StorageFan Wrote:
(2020-09-05, 12:00)CastagnaIT Wrote: @StorageFan I can not help you more than that
i never had QNAP and it is not easy to understand without having the device like that

i suspect that the problem is something related where is installed the packages

i think it is better if you try ask in some QNAP forum
Ok. No problem. Thank you very much for your support nonetheless! I've gotten quite far and think it is just one little piece missing.

If I were able to send @thomas.rehberg a personal message, he might be able to help me with the missing piece, since he seems to have successfully gotten through the process. But according to the rules of the admins of this forum my account is still not mature enough to be granted such privileges. Sad
Reply
Would it be possible to make the cleanining and importing of .strm files optional?

My reasoning is for my use-case, I use Emby to import my local video files, I then also scan the Netflix .strm files into Emby to add them to my Kodi library. However, because Kodi does a clean/update of the library when importing items, it messes with the local Kodi Emby database, and I am forced to do a full re-import of my entire Emby database after creating new .strm files.

I understand I am most likely in the minority of people who would need this, but it could most likely benefit other people's use-cases too.

Thank you.
Reply
I´m really sorry spotting your PM so late, StorageFan, but this was due to holidays :-)
Yesterday I responded to your query, but frankly I believe there is nothing instrumental left as an advice reading what CastagnaIT already shared with you. 
In my case I have had it running definitely, on a QNAP HS-251+ with HD-Station 4.07 enabled. The problem with the pycryptodome missing I ran into as well but could solve it accordingly. I gave some more info  in my respond to your PM, let me know where I could help further. It must be possible, it was in my case, why shouldn´t it work out on your QNAP box.
Reply
(2020-09-08, 09:15)thomas.rehberg Wrote: I´m really sorry spotting your PM so late, StorageFan, but this was due to holidays :-)
Yesterday I responded to your query, but frankly I believe there is nothing instrumental left as an advice reading what CastagnaIT already shared with you. 
In my case I have had it running definitely, on a QNAP HS-251+ with HD-Station 4.07 enabled. The problem with the pycryptodome missing I ran into as well but could solve it accordingly. I gave some more info  in my respond to your PM, let me know where I could help further. It must be possible, it was in my case, why shouldn´t it work out on your QNAP box.
No problem. I am just glad that we can now talk. I am pretty sure together we will find out the missing detail that's keeping my KODI installation from finding the damn library.
If you can run it successfully on your HD-Station 4.0.7, I don't see any reason why it shouldn't run on my HD-Station 4.0.10. It must be a tiny remaining issue like the wrong folder or a rename or a virtual directory link or something.
Windows 10, HTC 12U+ cellphone, Sony TV with Android 8, Synology DS920+ & QNAP TBS-453DX
Reply
(2020-09-08, 09:15)TheGame1986 Wrote: Would it be possible to make the cleanining and importing of .strm files optional?

My reasoning is for my use-case, I use Emby to import my local video files, I then also scan the Netflix .strm files into Emby to add them to my Kodi library. However, because Kodi does a clean/update of the library when importing items, it messes with the local Kodi Emby database, and I am forced to do a full re-import of my entire Emby database after creating new .strm files.

I understand I am most likely in the minority of people who would need this, but it could most likely benefit other people's use-cases too.

Thank you.
I use Emby for my database as well and I don't seem to have that issue. My Emby database has mix of Netflix strms, Amazon strms and my local DVD rips. Everything gets imported to the Kodi library without any issues and 99% of the time is better than importing from sources. As soon as something is added to Netflix or removed, a scheduled Emby scan processes the changes and poof... Magic! Do you have the update library after scan or clean library setting ticked in the Kodi settings?
Reply
Hi,

I just started using Kodi.
Installed the latest 18.8 from ppa on latest Ubuntu 20.04.
After some starting- trouble and with the help of this forum I managed to get the netflix plugin to work (https://github.com/CastagnaIT/plugin.video.netflix).

Actually "work" means: I can play movies, but only the ones I have in my library since the search feature doesn't work.
It throws the following python exception:
Code:

2020-09-08 19:56:46.128 T:140167525395136   ERROR: Control 55 in window 10025 has been asked to focus, but it can't
2020-09-08 19:56:46.821 T:140166569228032   ERROR: GetDirectory - Error getting /home/hfi/.kodi/userdata/addon_data/plugin.video.netflix/movies
2020-09-08 19:56:46.821 T:140166569228032   ERROR: GetDirectory - Error getting special://profile/addon_data/plugin.video.netflix/movies
2020-09-08 19:56:46.821 T:140166569228032   ERROR: GetDirectory - Error getting /home/hfi/.kodi/userdata/addon_data/plugin.video.netflix/shows
2020-09-08 19:56:46.821 T:140166569228032   ERROR: GetDirectory - Error getting special://profile/addon_data/plugin.video.netflix/shows
2020-09-08 19:56:53.248 T:140166569228032   ERROR: [plugin.video.netflix (2)] SQLite error no such table: search:
2020-09-08 19:56:53.251 T:140166569228032   ERROR: [plugin.video.netflix (2)] Traceback (most recent call last):
                                              File "/home/hfi/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 33, in wrapper
                                                func(*args, **kwargs)
                                              File "/home/hfi/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 249, in run
                                                success = route(pathitems)
                                              File "/home/hfi/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 90, in lazy_login_wrapper
                                                return func(*args, **kwargs)
                                              File "/home/hfi/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 126, in route
                                                _execute(nav_handler, pathitems[1:], G.REQUEST_PARAMS)
                                              File "/home/hfi/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 153, in _execute
                                                executor(pathitems=pathitems)
                                              File "/home/hfi/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory.py", line 277, in search
                                                route_search_nav(pathitems, self.perpetual_range_start, self.dir_update_listing, self.params)
                                              File "/home/hfi/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory_search.py", line 42, in route_search_nav
                                                search_list()
                                              File "/home/hfi/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory_search.py", line 59, in search_list
                                                list_data = [_create_dictitem_from_row(row) for row in G.LOCAL_DB.get_search_list()]
                                              File "/home/hfi/.kodi/addons/plugin.video.netflix/resources/lib/database/db_base_sqlite.py", line 58, in wrapper
                                                return func(*args, **kwargs)
                                              File "/home/hfi/.kodi/addons/plugin.video.netflix/resources/lib/database/db_local.py", line 144, in get_search_list
                                                cur = self._execute_query(query, (guid,), cur)
                                              File "/home/hfi/.kodi/addons/plugin.video.netflix/resources/lib/database/db_base_sqlite.py", line 150, in _execute_query
                                                raise_from(DBSQLiteError, exc)
                                              File "/home/hfi/.kodi/addons/script.module.future/libs/future/utils/__init__.py", line 456, in raise_from
                                                raise e
                                            DBSQLiteError
2020-09-08 19:56:56.525 T:140167370135296   ERROR: GetDirectory - Error getting plugin://plugin.video.netflix/directory/search/search/
2020-09-08 19:56:56.542 T:140167525395136   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflix/directory/search/search/) failed

I got this error using 1.6.0 version of the plugin as liked in the post that helped me with another issue.
After that I upgraded to latest 1.9.0, but still the error occures.

I'm used to write python scripts, so I can tell this is not a dependecy issue, it seems to be some kind of sqlite database issue.
Any ideas?
Reply
(2020-09-08, 19:54)snoopyjoe Wrote:
(2020-09-08, 09:15)TheGame1986 Wrote: Would it be possible to make the cleanining and importing of .strm files optional?

My reasoning is for my use-case, I use Emby to import my local video files, I then also scan the Netflix .strm files into Emby to add them to my Kodi library. However, because Kodi does a clean/update of the library when importing items, it messes with the local Kodi Emby database, and I am forced to do a full re-import of my entire Emby database after creating new .strm files.

I understand I am most likely in the minority of people who would need this, but it could most likely benefit other people's use-cases too.

Thank you.
I use Emby for my database as well and I don't seem to have that issue. My Emby database has mix of Netflix strms, Amazon strms and my local DVD rips. Everything gets imported to the Kodi library without any issues and 99% of the time is better than importing from sources. As soon as something is added to Netflix or removed, a scheduled Emby scan processes the changes and poof... Magic! Do you have the update library after scan or clean library setting ticked in the Kodi settings?

I don't believe I have those settings ticked, but I will double check. The reason I have assumed (admittedly, perhaps incorrectly assumed) it is caused by the Netflix add-on is that the Emby database becomes messed up (shows/episodes/movies suddenly disappear) after Netflix add-on creates .strm files and then automatically runs a library update/clean. I did a Google search and found a thread at the Emby forums where someone was having a similar problem to me, with items going missing, and it was mentioned there that you should never use the native Kodi library update or cleaning with Emby for Kodi as it is known to cause issues.

My assumptions could be totally wrong, and if it is then I apologise.
Reply
@heifi - your post (a couple above this one) has been merged into the main support thread for the Netflix addon.

Just FYI in case you wondered where your thread had gone.
|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
(2020-09-08, 21:12)TheGame1986 Wrote: I don't believe I have those settings ticked, but I will double check. The reason I have assumed (admittedly, perhaps incorrectly assumed) it is caused by the Netflix add-on is that the Emby database becomes messed up (shows/episodes/movies suddenly disappear) after Netflix add-on creates .strm files and then automatically runs a library update/clean. I did a Google search and found a thread at the Emby forums where someone was having a similar problem to me, with items going missing, and it was mentioned there that you should never use the native Kodi library update or cleaning with Emby for Kodi as it is known to cause issues.

My assumptions could be totally wrong, and if it is then I apologise.
I remember when the addon did that after each export. I haven't seen it do that for quite some versions now though. What version of the Netflix addon are you using? Also do you use the "keep my list sync with Kodi library" and "auto update scheduler" settings in the addon? I started using that once it was reliable enough and after the initial full sync it doesn't seem to ever touch the library.

Also, I just thought about if you have a Kodi source pointing to your Netflix export folder. That may cause the Netflix addon to update the library if sees that there is source in Kodi. With Emby, there should be no sources except Emby itself.
Reply
(2020-09-09, 00:06)snoopyjoe Wrote:
(2020-09-08, 21:12)TheGame1986 Wrote: I don't believe I have those settings ticked, but I will double check. The reason I have assumed (admittedly, perhaps incorrectly assumed) it is caused by the Netflix add-on is that the Emby database becomes messed up (shows/episodes/movies suddenly disappear) after Netflix add-on creates .strm files and then automatically runs a library update/clean. I did a Google search and found a thread at the Emby forums where someone was having a similar problem to me, with items going missing, and it was mentioned there that you should never use the native Kodi library update or cleaning with Emby for Kodi as it is known to cause issues.

My assumptions could be totally wrong, and if it is then I apologise.
I remember when the addon did that after each export. I haven't seen it do that for quite some versions now though. What version of the Netflix addon are you using? Also do you use the "keep my list sync with Kodi library" and "auto update scheduler" settings in the addon? I started using that once it was reliable enough and after the initial full sync it doesn't seem to ever touch the library.

Also, I just thought about if you have a Kodi source pointing to your Netflix export folder. That may cause the Netflix addon to update the library if sees that there is source in Kodi. With Emby, there should be no sources except Emby itself.

Thanks for the reply. I am on version 1.9.0 of the Netflix add-on, I have both those settings enabled and have it set to run a schedule every 5 days. I am certain that it is cleaning and upadting the library via the Kodi functions, but like I say, I could be totally wrong.

I have no sources manually added to my Kodi system - I run everything through Emby, so there isn't anything for Kodi to 'clean' or 'update' physically.
Reply
The Plugin don't export .strm anymore !
Kodi 18.8
Addon 1.9
Is export to .strm removed in 1.9V?
Reply
Warning: although the set of instructions following below in this post does produce a working result, it is explicitly not recommended by the author of the Netflix plugin, @CastagnaIT . I leave it here for the sake of documentation and providing additional help, should the officially recommended manual not work for some reason on your QNAP system.

But if you want to do it the right way, please follow the revised instructions outlined in this permanent post:
https://forum.kodi.tv/showthread.php?tid...pid2975994


Old and outdated text starting here:
Just for the sake of completion and to help other people struggling with the installation of the Netflix plugin for KODI 18 on their QNAP, here is the set of instructions how to get there.

I start with the assumption that you managed to install HD Station on your QNAP and then install KODI 18 by adding the QNAP Club repository in your App Center. I also assume that you're capable of logging into your QNAP as admin using telnet or ssh.

This breakthrough was only possible, because @thomas.rehberg gave me the crucial hint that HD Station is a chroot subsystem based on Ubutun 18.04 residing within QTS.
Since QNAP is updating their Firmware very frequently (with all the advantages and disadvantages), this manual is only guaranteed to work for QTS 4.4.3 running HD Station 4.0.10 and KODI 18.0.0.5.
Chances are good that it might work with older or newer releases, but for example KODI 19 is a completely different animal since it is based on Python3 (while KODI 18 still runs ons Python 2.7).

The following instructions also assume that the HD Station’s chroot is based in the same folder as it is the case on my QNAP (which was the standard path after installing HD Station through the App Center):

/share/CACHEDEV1_DATA/.qpkg/HD_Station

It might be in a different folder in your case (I am running a TBS-453DX with a single 1TB SSD from WD RED SA500). During my googling sessions I’ve seen instructions and logfiles based on the premise of the HD Station folder being located for example here:
/share/MD0_DATA/.qpkg/HD_Station

So maybe check first, if you can cd or ls your way into the folder
/share/CACHEDEV1_DATA/.qpkg/HD_Station
and if that fails, try to find out where your HD Station is located instead in your QTS.

Now come the steps to install the Crypto package to your HD Station that took me quite some time to figure out:
Log into QNAP command line interface (via ssh or telnet) as admin and then execute the following commands:
chroot /share/CACHEDEV1_DATA/.qpkg/HD_Station

Now you’re located in the HD Station sub-environment as root, which is basically an Ubutunu 18.04 within QNAP’s QTS and gives you access to the usual commands and package managers like apt, pip etc. and now you can easily execute what CastagnaIT has suggested (which you cannot when just logging into your QNAP as admin, because there isn't even a package manager available). In case you’re not very familiar with Linux (like I am), here are the Baby steps

apt update (to update the dependencies and repositories in your system)
apt upgrade (you can - and probably should! - skip that command, because it updates everything in your local Ubuntu 18.04 environment, which takes some time. Since I was already frustrated and didn’t care much anymore, I did it nonetheless and couldn’t see any bad consequences (or any difference to be honest except a newer version of the Chrome browser) later when using HD station. I uninstalled HD Station some time later and re-installed it and skipped the apt upgrade and everything worked fine as well. So run this command at your own risk and if in doubt, just skip it.

apt install build-essential
apt install python-dev
apt install python-pip
apt install python-setuptools

often a message like "python-dev is already the newest version" will be the result. Which is fine, because most packages are probably already included and up to date on your HD Station.
Now comes the most important command installing the missing Crypto library on your system:

pip install --user pycryptodomex

So now you might think you’re done. And there is nothing wrong with giving KODI another try before continuing these instructions. In my case though the Netflix plugin still produced an error popup and the same error text (No module named 'Cryptodome') persisted in the logfile. 😱

But again my hours of googling had produced some ideas, which I explored and step by step brought me closer to my goal.
In my case, the pycryptodomex package had only created a folder called “Crypto” in /usr/lib…
But as someone else had already found out, the system seems to expect the library in the folder Cryptodome instead. So I added a symbolic link using the following command:

ln -s /usr/lib/python2.7/dist-packages/Crypto /usr/lib/python2.7/dist-packages/Cryptodome

(That basically just kind of mirrors the content of /Crypto to a virtual folder called /Cryptodome in the same directory).

So I gave KODI another try. And still got greeted by the “Netflix plugin failed” message. 🤪

I checked out the extended error logfile of KODI again and this time the error message had changed from “No module named 'Cryptodome'” to “Error Contents: cannot import name Padding”

Ahhh… something new to research. First I thought, installing the Padding package might solve this issue. The command for this is the following (but the installation probably isn't necessary, because it didn't really help and another step was necessary to resolve the situation. But just in case the following step should not work on its own, I leave this command in this description):

pip install Padding

But of course the error message persisted. 🙄
So again another post in the github thread mentioned before came to my rescue. This time in the form of this solution:

The installed Cryptodome(x) module for 2.7 does not ship with the Padding.py module. Therefore, download it manually from https://raw.githubusercontent.com/dlitz/...Padding.py into the folder
/usr/lib/python2.7/dist-packages/Crypto/Util
(You can test from the Python prompt (invoked by executing the command python in your command line) whether "from Crypto.Util import Padding" works. But you can also skip this step).

Being lazy, I installed the Padding.py file by starting Chrome on my HD Station, surfing to this post on github and clicking on the download link provided and then saving the Padding.py file to the location provided above.

Then of course I remembered that I need to save the Padding.py file to the chroot location of the HD Station instead. And tried to save the Padding.py a 2nd time to this location:
/share/CACHEDEV1_DATA/.qpkg/HD_Station/usr/lib/python2.7/dist-packages/Crypto/Util

Funny enough, there was already the file Padding.py to be found in that location with a file date of a few minutes before. So I guess parts of the QTS environment are mirrored to the HD Station Ubuntu environment and I had been too prescient for the first time in my odyssey to get the Netflix plugin running on my QNAP.

Anyhow, after starting KODI again, the Netflix plugin behaved for the first time like it did after installing it on my Anroid TV and on my Linux station.

I did not have any troubles logging into Netflix using my email address and password. So I did not need the new alternative login method.

After accessing the first video on Netflix, KODI asked me “Would you like to enable inputstream.adaptive?”. After accepting to enable it, KODI also asked me to install something called “Widevine”, which after accepting that, happened fortunately fully automatically. And as a result everything works now.

The only thing that is annoying: Netflix treats the KODI plugin like the Netflix App on Android TV. As a result streaming content from other countries by using a VPN to obtain a US based IP address is blocked with a specific error message.
So while you can use a VPN connection to watch Netflix series limited to other countries on your Kindle or Laptop, QNAP does not seem to be a solution. At least not for VPNs that have been already identified as VPN IPs by the Netflix service servers. So either switch to a different provider (which would then probably also work directly on your Smart TV) or switch to a regular Windows based Laptop.

And no, running Windows 7 or Windows 10 in a virtual machine on your QNAP is not a working solution. At least not on a TBS-453DX with a Celeron J4115 processor and similar NAS systems. Because the virtualization layer eats up too much of the processor power to provide a smooth video playback. You may be lucky on a stronger QNAP NAS.
Windows 10, HTC 12U+ cellphone, Sony TV with Android 8, Synology DS920+ & QNAP TBS-453DX
Reply
(2020-09-12, 11:55)StorageFan Wrote: Just for the sake of completion and to help other people struggling
(2020-09-12, 11:55)StorageFan Wrote: So while you can use a VPN connection to watch Netflix on your Kindle or Laptop, QNAP does not seem to be a solution. At least not for VPNs that have been already identified as VPN IPs by the Netflix service servers. So either switch to a different provider (which would then probably also work directly on your Smart TV) or switch to a regular Windows based Laptop.

Please note that there is a VPN policy (wiki) on this forum. Suggesting VPN usage to circumvent certain geo-locking situations is not appreciated.
Reply
@CastagnaIT : Thank you for having written this plugin and thank you for your support when I was trying to find a solution for my QNAP installation issues.
I would like to give something back to the community. So you might want to add a link for QNAP QTS users on your github instructions "How to install the addon" in the section "How to installing on: Linux distributions [click to expand]".

Either linking to my post in this thread above or - if you want to stay within the github environment - to my similar post on github.
Windows 10, HTC 12U+ cellphone, Sony TV with Android 8, Synology DS920+ & QNAP TBS-453DX
Reply
@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.
|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
  • 1
  • 165
  • 166
  • 167(current)
  • 168
  • 169
  • 227

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