• 1
  • 74
  • 75
  • 76(current)
  • 77
  • 78
  • 86
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)
That's the right info to try to debug from.
The second issue is a unicode character issue, there are a few of them lurking in the code.

The first may be similar although it looks like something has gone wrong with the cache. It may be resolved by going to the plugin settings page and under advanced ( I think ) there's a menu item for 'clear cache' . I suggest trying it and see if it helps.
alelec kodi repo, hosting my binary addons not eligible for the official repo .
netflix, sbs ondemand, webdriver etc.

http://kodi.alelec.net/
Reply
@corona with latest plugin code I got the following log when trying to get past the Profile Selection window. I had just started Kodi up.

17:57:43 T:140658147841792 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'requests.exceptions.ConnectionError'>
Error Contents: HTTPSConnectionPool(host='www.netflix.com', port=443): Max retries exceeded with url: /ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault (Caused by <class 'httplib.BadStatusLine'>: '')
Traceback (most recent call last):
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 1061, in <module>
index()
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 153, in index
if login():
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 702, in login
chooseProfile()
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 710, in chooseProfile
content = load("https://www.netflix.com/ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault")
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 96, in load
r = session.get(url).text
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 467, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 455, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 558, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 378, in send
raise ConnectionError(e)
ConnectionError: HTTPSConnectionPool(host='www.netflix.com', port=443): Max retries exceeded with url: /ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault (Caused by <class 'httplib.BadStatusLine'>: '')
-->End of Python script error report<--
17:57:44 T:140659434350336 ERROR: Previous line repeats 1 times.
17:57:44 T:140659434350336 NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 150 ms
17:57:45 T:140658113750784 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'requests.exceptions.ConnectionError'>
Error Contents: HTTPSConnectionPool(host='www.netflix.com', port=443): Max retries exceeded with url: /ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault (Caused by <class 'httplib.BadStatusLine'>: '')
Traceback (most recent call last):
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 1061, in <module>
index()
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 153, in index
if login():
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 702, in login
chooseProfile()
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 710, in chooseProfile
content = load("https://www.netflix.com/ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault")
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 96, in load
r = session.get(url).text
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 467, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 455, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 558, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 378, in send
raise ConnectionError(e)
ConnectionError: HTTPSConnectionPool(host='www.netflix.com', port=443): Max retries exceeded with url: /ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault (Caused by <class 'httplib.BadStatusLine'>: '')
-->End of Python script error report<--
17:57:45 T:140659844839360 ERROR: GetDirectory - Error getting plugin://plugin.video.netflixbmc/
17:57:45 T:140659844839360 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflixbmc/) failed
17:57:45 T:140658113750784 NOTICE: Thread BackgroundLoader start, auto delete: false
17:57:45 T:140658135516928 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'requests.exceptions.ConnectionError'>
Error Contents: HTTPSConnectionPool(host='www.netflix.com', port=443): Max retries exceeded with url: /ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault (Caused by <class 'httplib.BadStatusLine'>: '')
Traceback (most recent call last):
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 1061, in <module>
index()
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 153, in index
if login():
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 702, in login
chooseProfile()
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 710, in chooseProfile
content = load("https://www.netflix.com/ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault")
File "/home/jason/.kodi/addons/plugin.video.netflixbmc/default.py", line 96, in load
r = session.get(url).text
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 467, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 455, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 558, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 378, in send
raise ConnectionError(e)
ConnectionError: HTTPSConnectionPool(host='www.netflix.com', port=443): Max retries exceeded with url: /ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault (Caused by <class 'httplib.BadStatusLine'>: '')
-->End of Python script error report<--
17:57:45 T:140659844839360 ERROR: GetDirectory - Error getting plugin://plugin.video.netflixbmc/
17:57:45 T:140659844839360 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflixbmc/) failed
17:57:45 T:140658135516928 NOTICE: Thread BackgroundLoader start, auto delete: false
17:57:45 T:140659844839360 ERROR: GetDirectory - Error getting plugin://plugin.video.netflixbmc/
17:57:45 T:140659844839360 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflixbmc/) failed
17:57:45 T:140658135516928 NOTICE: Thread BackgroundLoader start, auto delete: false
17:57:45 T:140659844839360 ERROR: GetDirectory - Error getting plugin://plugin.video.netflixbmc/
17:57:45 T:140659844839360 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflixbmc/) failed
17:57:45 T:140658135516928 NOTICE: Thread BackgroundLoader start, auto delete: false

Not sure if its something you can deal with or not?

(2014-12-05, 06:08)corona Wrote: That's the right info to try to debug from.
The second issue is a unicode character issue, there are a few of them lurking in the code.

The first may be similar although it looks like something has gone wrong with the cache. It may be resolved by going to the plugin settings page and under advanced ( I think ) there's a menu item for 'clear cache' . I suggest trying it and see if it helps.

Actually I think the first is a Netflix bug. I added a debug statement to get the url that was tried to load a video from my viewing activity and this is what happened:

http://api-global.netflix.com/desktop/od...country=US

java.lang.NullPointerException: Cannot invoke method asOriginal() on null object
at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:32)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at com.netflix.api.service.video.APIVideo$asOriginal$0.call(Unknown Source)
at Script5732876670475581240$_run_closure2.doCall(Script5732876670475581240.groovy:847)
at sun.reflect.GeneratedMethodAccessor18314.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav

<snip>

I think the parameter should be seriesId= rather than video=

https://github.com/andrewleech/plugin.vi...bmc/pull/2
Reply
Alas that does not really fix View Activity as for some reason the View Activity view actually has links to load the Series, rather than individual videos. But the getSeriesInfo was broken so its not all a waste of time. I am looking at why view activity does not generate video id links.

(2014-12-05, 09:18)JasonPell Wrote: Alas that does not really fix View Activity as for some reason the View Activity view actually has links to load the Series, rather than individual videos. But the getSeriesInfo was broken so its not all a waste of time. I am looking at why view activity does not generate video id links.

I had "Browse TV Shows instead of Auto play" enabled, this was why when I clicked on a video I was taken to a list of seasons for that movie id. Once you disable it, you get taken straight to the movie. However the MR does fix a bug with listing seasons, so its good to merge.
Reply
I pushed a fix for the encoding issue as well. I added an encode('utf-8') to what gets returned from the load function. I also added some basic html entity cleanup. I don't know of any python functions to do that, but I noticed some &amp; and ' in TV Genres.
Reply
(2014-12-05, 04:20)corona Wrote: I've done a bit more work on the plugin, it appears there a couple of facets to the not loading full screen issue.

As far as I can tell, if chrome is running on its default user directory, if there are any chrome windows or processes already open then you can't start a new kiosk window. The kiosk window has to be the first process started using that user directory. This is a good reason to configure the chrome launcher plugin to use a separate profile on its settings page, then even if you have normal chrome running on your pc you can still start a chrome launcher in kiosk as it has its own userdir.

Second to that though, my plugin has a background task which is listening for requests to close, as the close functionality can't run from a tab. When the plugin is first installed the background starts up and then proceeds to block kiosk mode. I've found though as long as I kill the background process once after install then it doesn't cause problems ever again. So after plugin is installed either reboot or (on windows) there will be a small chrome item in the notifications popup of taskbar that you can right click and close.

I've also submitted the plugin to the web store which makes it easier to install. It's still very much alpha and doesn't have any configuration but escape should close the current tab/window if it's on netflix.com as well as the other keyboard controls previously mentioned.

https://chrome.google.com/webstore/detai...pknknljhkj


https://www.youtube.com/watch?v=VoW9czgQBqE

nothing more to say Big Grin
works great now!

Would be great if you could add two things:
- automatic fade out of the mouse cursor (more important, already disabled the mouse in XBMC, doesn't help)
- button mapping for switching language and subtitles (less important)
Reply
(2014-12-02, 01:09)corona Wrote: I've got other personal code for controlling chrome with remote when in netflix player based on a js userscript which I wrote before finding any of the utilities that AddonScriptorDE provided. I'd be happy to share them if anyone wanted. It's basically remapping keys to more closely match my xbmc, escape to exit chrome and go back to xbmc and a way to get past the continue watching popup after a couple of back to back episodes of any show.

I would love to have this code. I don't use a mouse or keyboard. I use a makeshift remote, using the original xbox dvd ir receiver with a programmed dish network remote all controlled by eventghost. So most everything can be key mapped, and I can emulate the mouse, but something more native feeling would be great for my household.
Reply
I've updated my chrome extension and published the plugin publicly. It now has full configuration of the key mapping on the options page.

https://chrome.google.com/webstore/detai...pknknljhkj

After install you may need to reboot (or just kill all chrome processes) before kiosk mode will work again. Hopefully that will be enough.

(2014-12-05, 17:00)horstepipe Wrote: https://www.youtube.com/watch?v=VoW9czgQBqE

nothing more to say Big Grin
works great now!

Would be great if you could add two things:
- automatic fade out of the mouse cursor (more important, already disabled the mouse in XBMC, doesn't help)
- button mapping for switching language and subtitles (less important)

I like these suggestions! I'll certainly look into adding them, I've got some ideas on how to implement them.
I want to clean up some netflixbmc module interactions first.
alelec kodi repo, hosting my binary addons not eligible for the official repo .
netflix, sbs ondemand, webdriver etc.

http://kodi.alelec.net/
Reply
Nice work everyone, works well on OSX - Yosemite - Kodi RC-2.

Thanks. Smile

Reply
Maybe a stupid question, but...

how do I activate the addon? I installed it (is the file from here http://code.google.com/p/addonscriptorde...ip&can=2&q= the only one I need?) but I cannot find it.

Thanks!
Reply
How did you "install" it? If it was installed correctly should be found under Video Addons menu option
Reply
I selected "Install from file" and selected the zip file from the start post. But that is less than 1 kilobyte - I guess the actual addon has to be downloaded somehow?
I have absolutely no idea what to do Sad
What are repositories and how do I actually install an addon?

Edit:
Okay, I found out how to install the addon. But now I'm confused:
Is there supposed to be a user interface comparable to Netflix on my TV or do I solely use Netflix via my browser?
When I try to browse Netflix via the interface provided by the addon, I find hardly any movies/shows, the genre view is completely empty...?
Reply
Download the latest version of the plugin from corona repo. There are quite a few fixes since that version you installed. Extract the zip over the existing add-on and restart.

Netflix add-on will display your movies TV shows inside xbmc but will have to load a browser to actually display them due to DRM.

The location of the zip to download is https://github.com/andrewleech/plugin.vi...master.zip
Reply
Installed latest update and getting error that I am not logged in when I try to view my list. I checked the credentials and even logged into netflix via chrome to confirm and it still gives same error. Any ideas? Running latest nightly of RC2 and windows 7.

08:38:13 T:6508 NOTICE: -->Python Interpreter Initialized<--
08:38:14 T:7676 NOTICE: Previous line repeats 1 times.
08:38:14 T:7676 NOTICE: Thread LanguageInvoker start, auto delete: false
08:38:14 T:7676 NOTICE: -->Python Interpreter Initialized<--
08:38:15 T:1596 NOTICE: Thread FileCache start, auto delete: false
08:38:16 T:4860 NOTICE: Previous line repeats 2 times.
08:38:16 T:4860 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.netflixbmc/?mode=listVideos&thumb&type=tv&url=https%3a%2f%2fwww.netflix.com%2fMyList%3fleid%3d595%26link%3dseeall
08:38:16 T:4860 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflixbmc/?mode=listVideos&thumb&type=tv&url=https%3a%2f%2fwww.netflix.com%2fMyList%3fleid%3d595%26link%3dseeall) failed
08:38:16 T:4716 NOTICE: Thread BackgroundLoader start, auto delete: false
08:38:25 T:2660 NOTICE: Thread FileCache start, auto delete: false
Reply
Hey guys, great work on the plugin. I'm seeing some errors with a few of the categories and tv series info and I'd love to help debug and fix, but I'm a bit unsure as to which repo is the most current or the focus on? https://github.com/pellcorp/plugin.video.netflixbmc or https://github.com/andrewleech/plugin.video.netflixbmc.

Thanks
Reply
(2014-12-07, 19:19)DigTheDoug Wrote: Hey guys, great work on the plugin. I'm seeing some errors with a few of the categories and tv series info and I'd love to help debug and fix, but I'm a bit unsure as to which repo is the most current or the focus on? https://github.com/pellcorp/plugin.video.netflixbmc or https://github.com/andrewleech/plugin.video.netflixbmc.

Thanks

Hi DigTheDoug,
Definitely feel free to fix issues! My github (andrewleech) is the main build going at the moment, while pellcorp is also fixing issues and submitting pull req's to me.

Cheers,
Andrew
alelec kodi repo, hosting my binary addons not eligible for the official repo .
netflix, sbs ondemand, webdriver etc.

http://kodi.alelec.net/
Reply
  • 1
  • 74
  • 75
  • 76(current)
  • 77
  • 78
  • 86

Logout Mark Read Team Forum Stats Members Help
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)7