Kodi Community Forum

Full Version: [RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is good news. I cancelled my Netflix after this plugin stopped working. If the plugin works again in the future, I'll resubscribe Wink
(2015-09-28, 10:17)marv_el Wrote: [ -> ]first of all, i appreciate your efforts for having a perfect netflix experience.
i am using openelec with chromium and i am not sure if the new webdriver solution will work on openelec.
corona, will you update netflixbmc with the webdriver or make a fork so the addon will not break on openelec?
btw. is it possible to add an option to disable remote control? i am using my own solution and the dummy window interferes with it.
I presume you mean on a raspberry pi or similar arm board? At this stage no, webdriver wont run on arm. I think it'll be possible to get it going, anywhere chromium can be compiled, so can chromedriver.
I was planning on upgrading the current plugin to have webdriver as the default on platforms where it's supported, and fall back to chromelauncher/netflix app for other platforms.

I thought the control window could already be disabled. Just checked, turns out I was wrong. https://github.com/andrewleech/plugin.vi.../issues/63

(2015-09-28, 10:17)marv_el Wrote: [ -> ]i tried yidio and it seems very uncomplete. i tried two netflix and one amazon shows (the returned - 2015, firefly and fear the walking dead) and they all had no links available...
Yeah ok, I'll wait and see if they get back to me on my query, but certainly wont start implementing against them unless it looks robust.
(2015-09-28, 11:37)ZumZen Wrote: [ -> ]
(2015-09-27, 23:47)jluce50 Wrote: [ -> ]
(2015-09-27, 23:23)ZumZen Wrote: [ -> ]Here's an update that works with their new website. It basically gets JSON data from both the web pages and the private REST API.

Cool! Does this mean it won't be quite as dependent on the exact UI layout?

To some extent. There is some information that comes from JavaScript variables in their web pages. While that is layout independent, the way that the variables appear in there and their particular names could change. I doubt that will be soon though. They have to give the current platform its run for the money.

The rest of the info (genres, new arrivals, seasons, episode info) comes from their internal API which is served as JSON objects. Ideally an addon would only use that.

I think their internal API is robust (i.e. won't change soon). It's flexible, extensive and it looks like they have spent quite some effort on it. They released parts as OSS (see, for example, http://netflix.github.io/falcor/). So I think that's a safe bet for a few years.

Yeah they've blogged about their api a lot too, and it certainly appears there is enough there (somewhere) that would cover all our needs, but most of it can't be seen just by monitoring the web pages.
I've thought of using a copy of phantomjs or nodejs to process the js scripts required to avoid scraping the final html pages, but not sure if there's really much value in that. A minimal amount of parsing might not be too hard to maintain.
(2015-09-28, 13:26)corona Wrote: [ -> ]
(2015-09-28, 10:17)marv_el Wrote: [ -> ]first of all, i appreciate your efforts for having a perfect netflix experience.
i am using openelec with chromium and i am not sure if the new webdriver solution will work on openelec.
corona, will you update netflixbmc with the webdriver or make a fork so the addon will not break on openelec?
btw. is it possible to add an option to disable remote control? i am using my own solution and the dummy window interferes with it.
I presume you mean on a raspberry pi or similar arm board? At this stage no, webdriver wont run on arm. I think it'll be possible to get it going, anywhere chromium can be compiled, so can chromedriver.
I was planning on upgrading the current plugin to have webdriver as the default on platforms where it's supported, and fall back to chromelauncher/netflix app for other platforms.

I thought the control window could already be disabled. Just checked, turns out I was wrong. https://github.com/andrewleech/plugin.vi.../issues/63

(2015-09-28, 10:17)marv_el Wrote: [ -> ]i tried yidio and it seems very uncomplete. i tried two netflix and one amazon shows (the returned - 2015, firefly and fear the walking dead) and they all had no links available...
Yeah ok, I'll wait and see if they get back to me on my query, but certainly wont start implementing against them unless it looks robust.

a fallback version is even better. chromium with widevine (drm) isn't available on arm platforms. i am having a x64 86 system. for some reason chrome is'nt avail. on openelec, that's the reason why someone compiled chromium and included widevine to be able to watch encrypted media.
(2015-09-28, 13:37)marv_el Wrote: [ -> ]
(2015-09-28, 13:26)corona Wrote: [ -> ]
(2015-09-28, 10:17)marv_el Wrote: [ -> ]first of all, i appreciate your efforts for having a perfect netflix experience.
i am using openelec with chromium and i am not sure if the new webdriver solution will work on openelec.
corona, will you update netflixbmc with the webdriver or make a fork so the addon will not break on openelec?
btw. is it possible to add an option to disable remote control? i am using my own solution and the dummy window interferes with it.
I presume you mean on a raspberry pi or similar arm board? At this stage no, webdriver wont run on arm. I think it'll be possible to get it going, anywhere chromium can be compiled, so can chromedriver.
I was planning on upgrading the current plugin to have webdriver as the default on platforms where it's supported, and fall back to chromelauncher/netflix app for other platforms.

I thought the control window could already be disabled. Just checked, turns out I was wrong. https://github.com/andrewleech/plugin.vi.../issues/63

(2015-09-28, 10:17)marv_el Wrote: [ -> ]i tried yidio and it seems very uncomplete. i tried two netflix and one amazon shows (the returned - 2015, firefly and fear the walking dead) and they all had no links available...
Yeah ok, I'll wait and see if they get back to me on my query, but certainly wont start implementing against them unless it looks robust.

a fallback version is even better. chromium with widevine (drm) isn't available on arm platforms. i am having a x64 86 system. for some reason chrome is'nt avail. on openelec, that's the reason why someone compiled chromium and included widevine to be able to watch encrypted media.

Ah sure. webdriver should work fine then, x86/x64 linux is supported by chromedriver so I don't expect there to be any issues. If by any chance you're in Australia try out my sbs ondemand plugin to see if it works (it's using webdriver). There's a few glitches in it still but on a whole the remote handling and focus management should be much better.
(2015-09-27, 23:23)ZumZen Wrote: [ -> ]Here's an update that works with their new website. It basically gets JSON data from both the web pages and the private REST API.

It's work in progress, but I figured I'd share it sooner rather than later in case people want to improve it or update the official add-on.

http://pastebin.com/K0LD5pLX

I've stuck a copy of this in a branch here: https://github.com/andrewleech/plugin.vi...ree/ZumZen
I did this as much to help me work through your changes, and also to keep it in an easier-to-find place than your post which quickly gets lost on here!

I can now see just how much you've changed, you've certainly put in a lot of work already!
(2015-09-27, 23:23)ZumZen Wrote: [ -> ]Here's an update that works with their new website. It basically gets JSON data from both the web pages and the private REST API.

It's work in progress, but I figured I'd share it sooner rather than later in case people want to improve it or update the official add-on.

http://pastebin.com/K0LD5pLX

Could you kindly guide me through, which file do i need to update/change with your code?

I am on Windows 10 and Kodi (15.1). Kodi is installed on C:-?program Files (X86)\Kodi

I am unable to figure out which file i should replace with your code, thanks.
(2015-09-28, 14:12)corona Wrote: [ -> ]
(2015-09-27, 23:23)ZumZen Wrote: [ -> ]Here's an update that works with their new website. It basically gets JSON data from both the web pages and the private REST API.

It's work in progress, but I figured I'd share it sooner rather than later in case people want to improve it or update the official add-on.

http://pastebin.com/K0LD5pLX

I've stuck a copy of this in a branch here: https://github.com/andrewleech/plugin.vi...ree/ZumZen
I did this as much to help me work through your changes, and also to keep it in an easier-to-find place than your post which quickly gets lost on here!

I can now see just how much you've changed, you've certainly put in a lot of work already!

I added your repository and updated your add-on to the latest version you have.
Upon running the addong (after configuring it), i only get "Talking to Netflix...Starting to Login" which is stuck at 25%

System:
Windows 10, english 64bix
Kodi (15.1)
add-on version: 1.3.23 (is this correct version number?)
Location: Norway

No error message, just stuck at 25%. Trying to cancel is also stuck with the message "Cancelling...-25%"
- No error message, just stuck at 25%. Trying to cancel is also stuck with the message "Cancelling...-25%"


Try disabling http security. Worked for me.


EDIT:
Sorry, disregard my http security setting comment. Went back and checked, I have it enabled and it is working. Well, kind of. Still no populations of movie/tv shows folders.

I deleted the addon manually, then reloaded the addon went through the advanced settings one by one and it eventually started authenticating and getting to the Movies and TV Shows menu.

Post 1075 fixed the My List population issue on my Windows box, but not on openelec.
(2015-09-28, 15:46)frank_jarle Wrote: [ -> ]
(2015-09-27, 23:23)ZumZen Wrote: [ -> ]Here's an update that works with their new website. It basically gets JSON data from both the web pages and the private REST API.

It's work in progress, but I figured I'd share it sooner rather than later in case people want to improve it or update the official add-on.

http://pastebin.com/K0LD5pLX

I added your repository and updated your add-on to the latest version you have.
Upon running the addong (after configuring it), i only get "Talking to Netflix...Starting to Login" which is stuck at 25%

System:
Windows 10, english 64bix
Kodi (15.1)
add-on version: 1.3.23 (is this correct version number?)
Location: Norway

No error message, just stuck at 25%. Trying to cancel is also stuck with the message "Cancelling...-25%"

@ZumZen's changes are not in the main plugin yet, it's a work in progress. You can test the changes if you like by copying the text from http://pastebin.com/K0LD5pLX and replacing default.py from the installed plugin with the text.
the plugin folder will be <userdata>/addons/plugin.video.netflixbmc where userdata: http://kodi.wiki/view/Userdata

Otherwise wait for a new release.
For anyone interested in disabling Kodi's power management (Linux version) while watching Netflix in Chrome here's want I did.

This calls the Kodi JSON api to turn off power management when chrome is launched and on when it's killed.

Edit browser.sh (~/.kodi/addons/plugin.video.netflixbm/browser.sh)
Add lines at the top of the script (line 3):
#Turn off PowerManagement
wget --header='Content-Type: application/json' --post-data '{"jsonrpc":"2.0","method":"Settings.SetSettingValue","params":{"setting":"powermanagement.displaysoff","value":0},"id":1}' http://localhost:8080/jsonrpc -O - | python -m json.tool


Insert this at line 52:
#Turn PowerManagement back on
wget --header='Content-Type: application/json' --post-data '{"jsonrpc":"2.0","method":"Settings.SetSettingValue","params":{"setting":"powermanagement.displaysoff","value":10},"id":1}' http://localhost:8080/jsonrpc -O - | python -m json.tool
Quote:a fallback version is even better. chromium with widevine (drm) isn't available on arm platforms. i am having a x64 86 system. for some reason chrome is'nt avail. on openelec, that's the reason why someone compiled chromium and included widevine to be able to watch encrypted media.

FYI - chromium in arm does work with netflix if you use widevine files from chromeos. Now whether you can get it hw accelerated for a specific device is another question, but getting to work in general is pretty easy, especially if your distro already enables it in their chromium builds and then all you need to do is copy the files.
Hey

Does this stream also 4k ?
About 4K i think it only support devices wich has a official plugin from netflix and browsers like IE,Edge.

You only get 720p also for chrome,opera,Firefox as i read on a norwegian site.
Hello all,

I just updated to the plugin version from here https://github.com/andrewleech/plugin.vi...ree/ZumZen

Hoping it would fix a problem I am having but to no avail.

Every time I start a show it takes me to this kind of netflix advertisement page it looks like the default home page or something and cycles through 4 different shows that you can watch and displays shows I am watching along the bottom.

If I stop and then start the show again it works is anyone else seeing this same behaviour?

Thanks.