[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 2
(2015-08-31, 11:18)rjwilkins Wrote: I managed to get the plugin working again - such that 'TV Shows/All Shows' now works again.

The problem seems to be that Netflix have changed the data returned for the URL 'http://www.netflix.com/browse/genre/83' which is what is used in the plugin.

The regular expression I have added to the code will find the tv show IDs within the updated Netflix data but also returns some entries that are not TV shows. I filtered these by checking that they are above 10000000 - not the best idea I guess but it seems to work.

Anyway - again I have no idea how to get this update into the plugin so hopefully someone else will know how to do that. If you apply this diff to the default.py file it should work again:

Code:
266a267,268
>             if not match: match = re.compile('"summary":.*?"id":([0-9]+)', re.DOTALL).findall(content)
>             if not match: match = re.compile('"boxarts":.*?"id":([0-9]+)', re.DOTALL).findall(content)
269,271c271,275
<                 pDialog.update(i*100/len(match), translation(30142)+"...")
<                 listVideo(videoID, "", "", False, False, type)
<                 i+=1
---
>                 if int(videoID)>10000000:
>                     pDialog.update(i*100/len(match), translation(30142)+"...")
>                     listVideo(videoID, "", "", False, False, type)
>                     i+=1

As everybody else said - it would be much easier if Netflix provided a published API...

Can you post your default.py? I want to make sure I make the correct changes. Thanks!
Reply


Messages In This Thread
Who's Watching is empty? - by RiverBend - 2015-01-08, 18:55
Full-screen mode - by oakertood - 2015-03-29, 01:08
25% - by Mattlock - 2015-07-06, 03:56
RE: [RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 2 - by ryantrip - 2015-09-01, 01:18
Additional/Original Browser Option? - by durv - 2015-09-07, 05:07
[RELEASE] NetfliXBMC - EMPTY LISTS - by Nibar - 2015-12-08, 03:38
Logout Mark Read Team Forum Stats Members Help
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 217