• 1
  • 75
  • 76
  • 77(current)
  • 78
  • 79
  • 102
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 2
Someone cloud create a web service that the plugin pulls information from... where the service parses the necessary details from Netflix instead of the plugin doing that job itself. This would make it easier to update how the information is parsed every time Netflix makes changes, because the plugin won't need an update.
Reply
Damn it... All I want is an integrated library... is that so much to ask?
Reply
(2015-09-05, 01:33)ryantrip Wrote: Someone cloud create a web service that the plugin pulls information from... where the service parses the necessary details from Netflix instead of the plugin doing that job itself. This would make it easier to update how the information is parsed every time Netflix makes changes, because the plugin won't need an update.

Exactly. Now take this thought to the next level: we need an API key for the web service...
Reply
ok, add this regex match to the match list that starts around line 265 in default.py and you should get "All Shows" back again"

Code:
if not match: match = re.compile('<a href="/watch/([0-9]+)', re.DOTALL).findall(content)

remember python indent rules! If you get a netflixbmx error, you've got the indenting wrong. use spaces only to indent and make sure the above statement lines up exactly with the other if statements

note this is also a partial fix for the "Latest" menu selection: However, while "Latest" does show results again, the results contain duplicates. I'll need to tune the regex a bit more for that.

However, itmt, I have a headache....
Reply
Sleuth255 -- thanks for all you hard work on this -- inch by inch we seem to be getting something that is working a little bit better.

So we have a partial fix for "my list" as outlined in your post #1075 and now this additional fix to get "all shows" working again. To save us all a lot of pain and suffering could you please post a copy of the your default.py file with these two fixes in place for us all to test.

I would attempt to try to make these changes myself - but I would most likely make a real mess of it (given the sensitivity to this type of coding to indent rules) and my overly clumsy typing.

Thanks in advance for helping us all out with this.
Reply
(2015-09-05, 01:39)locoguano Wrote: Damn it... All I want is an integrated library... is that so much to ask?
That was also my first response, the add-on isn't working very well since the last month's, but my list is still working very well. So if you want to make use of Netflix BMC, my list is the only working option. Since this problem, I don't make use of netflixbmc anymore, many other options are available beside xbmc or kodi.
Kodi without a working solution for Netflix is just a shame.
Reply
I'd love to but I don't see an option to add an attachment. Maybe my post count is too low?

edit:
This forum doesn't support attachments. I'll need to find a third party site then post a link.

Let's try this then:

https://www.dropbox.com/s/hcbavct92abirp...lt.py?dl=0
Reply
Hi Guys,

Need some advice here.
I'm currently using the following,
Windows 7
Kodi (Isengard)
Chrome launcher (1.1.4)
Netflixbmc (1.3.22)

I have applied the fix in post 1075, and "My List" is working now.
However when i click on Latest or Genres, it's empty. TV shows works fine thou.
Reply
Correct. Nobody's looked at the problem with Genres yet.

I've found the problem with Latest: the URL is no longer valid so netflix is returning the Browse page which has my list, suggestions and latest. Thus the duplicates (and my list entries as some of you may have noticed). If somebody can give me a URL to another site that shows Netflix latest additions and has unchanging HTML I'd rather use that. I'm investigating a larger issue that may be causing netflix to ignore the newer URLs when issued as post/get requests by python. It also might be related to why two requests have to be issued. Netflix thinks the browser is out of date: Here's what's embedded in all responses to HTTP GETs issued by this addon:

Image
Reply
Hello,
i am busy for hours now to get netflixbmc working on senguard.

Everytime when starting a menu-item in netflixbmc i get an log-error.
This is my logfile:

16:09:19 T:4380 NOTICE: Thread LanguageInvoker start, auto delete: false
16:09:19 T:4380 NOTICE: -->Python Interpreter Initialized<--
16:09:21 T:2268 NOTICE: Thread BackgroundLoader start, auto delete: false
16:09:24 T:3656 NOTICE: Thread LanguageInvoker start, auto delete: false
16:09:24 T:3656 NOTICE: -->Python Interpreter Initialized<--
16:09:24 T:3336 NOTICE: Thread BackgroundLoader start, auto delete: false
16:09:29 T:4888 NOTICE: Thread LanguageInvoker start, auto delete: false
16:09:29 T:4888 NOTICE: -->Python Interpreter Initialized<--
16:09:30 T:4888 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnboundLocalError'>
Error Contents: local variable 'match' referenced before assignment
Traceback (most recent call last):
File "C:\Users\mediacenter\AppData\Roaming\Kodi\addons\plugin.video.netflixbmc-1.3.4\default.py", line 977, in <module>
listVideos(url, type)
File "C:\Users\mediacenter\AppData\Roaming\Kodi\addons\plugin.video.netflixbmc-1.3.4\default.py", line 164, in listVideos
for videoID in match:
UnboundLocalError: local variable 'match' referenced before assignment
-->End of Python script error report<--
16:09:30 T:2516 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.netflixbmc/?mode=listVideos&thumb&type=movie&url=http%3a%2f%2fwww.netflix.com%2fWiRecentAdditionsGallery%3fnRR%3dreleaseDate%26nRT%3dall%26pn%3d1%26np%3d1%26actionMethod%3djson
16:09:30 T:2516 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflixbmc/?mode=listVideos&thumb&type=movie&url=http%3a%2f%2fwww.netflix.com%2fWiRecentAdditionsGallery%3fnRR%3dreleaseDate%26nRT%3dall%26pn%3d1%26np%3d1%26actionMethod%3djson) failed
16:09:30 T:4236 NOTICE: Thread LanguageInvoker start, auto delete: false
16:09:30 T:4236 NOTICE: -->Python Interpreter Initialized<--
16:09:30 T:2656 NOTICE: Thread BackgroundLoader start, auto delete: false
16:09:32 T:2516 NOTICE: Storing total System Uptime
16:09:32 T:2516 NOTICE: Saving settings
16:09:32 T:2516 NOTICE: stop all
16:09:32 T:2516 NOTICE: stop player
16:09:32 T:2516 NOTICE: ES: Stopping event server
16:09:32 T:2516 NOTICE: stopping upnp
16:09:33 T:4292 NOTICE: ES: UDP Event server stopped
16:09:33 T:2516 NOTICE: stop sap announcement listener
16:09:33 T:2516 NOTICE: clean cached files!
16:09:33 T:2516 NOTICE: unload skin
16:09:33 T:2516 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture list/bg_facade_focus_white.png
16:09:33 T:2516 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture list/bg_facade_nofocus.png
16:09:33 T:3900 NOTICE: StorageServer-2.5.4 Closed down
16:09:34 T:624 NOTICE: script.tv.show.next.aired: ### abort requested -- stopping background processing
16:09:34 T:4392 WARNING: CPythonInvoker(5, C:\Users\mediacenter\AppData\Roaming\Kodi\addons\service.skin.widgets\default.py): the python script "C:\Users\mediacenter\AppData\Roaming\Kodi\addons\service.skin.widgets\default.py" has left several classes in memory that we couldn't clean up. The classes include: class XBMCAddon::xbmcgui::Window,class PythonBindings::XBMCAddon_xbmc_Monitor_Director,class PythonBindings::XBMCAddon_xbmc_Player_Director
16:09:37 T:4372 NOTICE: breaking..........................
16:09:37 T:4372 NOTICE: AxelProxy Downloader Stopping 127.0.0.1:45550
16:09:37 T:2516 NOTICE: stopped
16:09:37 T:2516 NOTICE: destroy
16:09:37 T:2516 NOTICE: closing down remote control service
16:09:37 T:2516 NOTICE: unload sections
16:09:37 T:2516 NOTICE: special://profile/ is mapped to: special://masterprofile/
16:09:38 T:2516 NOTICE: destroy
16:09:38 T:2516 WARNING: Attempted to remove window 10013 from the window manager when it didn't exist
16:09:38 T:2516 WARNING: Attempted to remove window 10014 from the window manager when it didn't exist
16:09:38 T:2516 WARNING: Attempted to remove window 10015 from the window manager when it didn't exist
16:09:38 T:2516 WARNING: Attempted to remove window 10016 from the window manager when it didn't exist
16:09:38 T:2516 WARNING: Attempted to remove window 10017 from the window manager when it didn't exist
16:09:38 T:2516 WARNING: Attempted to remove window 10018 from the window manager when it didn't exist
16:09:38 T:2516 WARNING: Attempted to remove window 10019 from the window manager when it didn't exist
16:09:38 T:2516 WARNING: Attempted to remove window 10021 from the window manager when it didn't exist
16:09:38 T:2516 WARNING: Attempted to remove window 10107 from the window manager when it didn't exist
16:09:38 T:2516 WARNING: Attempted to remove window 10115 from the window manager when it didn't exist
16:09:38 T:2516 WARNING: Attempted to remove window 10104 from the window manager when it didn't exist
16:09:38 T:2516 NOTICE: closing down remote control service
16:09:38 T:2516 NOTICE: unload sections
16:09:38 T:2516 NOTICE: application stopped...

I have seen couple of options, but no real solution for this in the forum.

How can i fix this?

Thx
Reply
You can fix this by simply deleting the addon and read the first post of this thread. Then you reread the first post. Then reinstall the addon.
Reply
(2015-09-06, 15:55)Sleuth255 Wrote: Correct. Nobody's looked at the problem with Genres yet.

I've found the problem with Latest: the URL is no longer valid so netflix is returning the Browse page which has my list, suggestions and latest. Thus the duplicates (and my list entries as some of you may have noticed). If somebody can give me a URL to another site that shows Netflix latest additions and has unchanging HTML I'd rather use that. I'm investigating a larger issue that may be causing netflix to ignore the newer URLs when issued as post/get requests by python. It also might be related to why two requests have to be issued. Netflix thinks the browser is out of date: Here's what's embedded in all responses to HTTP GETs issued by this addon:

Image

This was done on purpose a few months back when netflix first changed their website dramatically. It was found that an old useragent was still getting shown (mostly) the old website which had all show details in the one page. The new version of the site needed a lot more ajax to get show details.

http://forum.kodi.tv/showthread.php?tid=...pid2033819
https://github.com/andrewleech/plugin.vi...43508fed16

By all means try reverting the change and see where you get, or perhaps make some requests with old useragent, some with new, to try to get the best of both versions.
alelec kodi repo, hosting my binary addons not eligible for the official repo .
netflix, sbs ondemand, webdriver etc.

http://kodi.alelec.net/
Reply
yeah, I changed the useragent and I'm now getting to the new content. ... which means I'm also seeing the issue which is not capturing all of the information using requests.get due to multiple redirects.... Maybe have to forget about the requests library altogether and do it the old fashioned way (gulp...). I'm just coming up to speed on python so this might take a few....
Reply
(2015-09-07, 02:51)Sleuth255 Wrote: yeah, I changed the useragent and I'm now getting to the new content. ... which means I'm also seeing the issue which is not capturing all of the information using requests.get due to multiple redirects.... Maybe have to forget about the requests library altogether and do it the old fashioned way (gulp...). I'm just coming up to speed on python so this might take a few....

I think it's more than just redirects, although if they're hurting you check
http://docs.python-requests.org/en/latest/api/
'allow_redirects' option.

longer term I think we're going to need to bounce off a different site with a usable api
http://forum.kodi.tv/showthread.php?tid=...pid2091072
http://forum.kodi.tv/showthread.php?tid=...pid2091817

even if that means using both that api site for most of the menus and the real netflix site for some features like mylist

alternatively, I plan on integrating pythonjs into my soon-to-be-released selenium based webdriver plugin, such that it can be used to load pages in the background and run all the js to get all the visible content, ie let it handle the ajax calls.
alelec kodi repo, hosting my binary addons not eligible for the official repo .
netflix, sbs ondemand, webdriver etc.

http://kodi.alelec.net/
Reply
agreed. It'll be a pretty big undertaking to get netflix based GETs working only to have it all break again the next time they change the site....
Reply
  • 1
  • 75
  • 76
  • 77(current)
  • 78
  • 79
  • 102

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