•   
  • 1
  • 41
  • 42
  • 43(current)
  • 44
  • 45
  • 86
  •   
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)
(2014-03-02, 02:28)ronaldscott Wrote: Search seems to be broken. The search list doesn't come back in a form that NetfliXBMC is prepared to handle; adding another regex to listVideos() appears to fix that, e.g.:

Code:
match1 = re.compile('<span id="dbs(.+?)_.+?alt=".+?" src="(.+?)"', re.DOTALL).findall(content)
            match2 = re.compile('<span class="title "><a id="b(.+?)_', re.DOTALL).findall(content)
            match3 = re.compile('<a href="http://dvd.netflix.com/WiPlayer\?movieid=(.+?)&', re.DOTALL).findall(content)
            if match1:
                for videoID, thumbUrl in match1:
                    listVideo(videoID, "", thumbUrl, False, False)
            elif match2:
                for videoID in match2:
                    listVideo(videoID, "", "", False, False)
            elif match3:
                for videoID in match3:
                    listVideo(videoID, "", "", False, False)

Not sure if it's just me...

Thanks ronaldscott! The search feature wasn't working for me either (returning no results no matter what I typed), and this fixed it!
Reply
(2014-05-08, 16:04)ilomambo Wrote: The "TV Shows" shows an empty page with only "Next Page".

Also when browsing "Genres" and reached the (I assume) last page, pressing "Next Page" will repeat the last page. I would expect either a message saying there are no more items to show, or to loop back to page 1.

Also, in "Recently viewed" when selecting a TV show episode it plays the same episode again. I would expect either to open the TV show netflix page to choose another episode or to play the next episode after the watched one.

Otherwise excellent addon!

I'm having the same issue. The earlier mentioned fix using the match3 is working for me but I can't go to the next page. In the Just For Kids genre this is working. Does anybody have a fix for this? Last thing and then it's perfect!
Reply
I am having the same issue with viewing titles, I have no Default.py file to open and change script. any thoughts?
Reply
(2014-05-14, 01:31)Linkcis Wrote: I am having the same issue with viewing titles, I have no Default.py file to open and change script. any thoughts?

What OS are you running on? If it is windows then it is in your appdata directory. For example mine is in c:\users\damon\appdata\roaming\xbmc\addons\plugin.video.netflixbmc

Under Linux it is in a similar directory off your homedir under .xbmc
Reply
I've just got this plugin and am having a play around, I can't seem to load any information from the genres tab, I get the titles of all the different genres but opening one up just results in "Next Page". I previously was having issues with search as well so used ronaldscotts change above which did work but I still lack full functionality, is there anything I am missing?
Reply
The Netflix website is obviously undergoing some pretty constant changes. The regex I wrote a couple weeks ago to scrape genres might no longer be sufficient and their own genre links at the top of their website are defunct (I'm not sure how they've gone on so long without noticing that). The good news is they have alternative links for those genres that do work and I've added a new regex for scraping that I'll share with you guys now.

You can either download my copy of default.py which has the below changes and more (for convenience) or implement the basic work-arounds below on your own file.

Open up your default.py and find def index, then paste this in its place (without the ... at the beginning and end):

Code:
...
def index():
    if login():
        addDir(translation(30002), urlMain+"/MyList?leid=595&link=seeall", 'listVideos', "")
        addDir(translation(30010), "", 'listViewingActivity', "")
        addDir(translation(30003), urlMain+"/WiRecentAdditionsGallery?nRR=releaseDate&nRT=all&pn=1&np=1&actionMethod=json", 'listVideos', "")
        addDir(translation(30004), urlMain+"/WiHD?dev=PC&pn=1&np=1&actionMethod=json", 'listVideos', "")
        addDir(translation(30005), urlMain+"/WiAltGenre?agid=83&pn=1&np=1&actionMethod=json", 'listVideos', "")
        addDir(translation(30007), "WiAltGenre", 'listGenres', "")
        addDir(translation(30006), urlMain+"/WiAltGenre?agid=6839&pn=1&np=1&actionMethod=json", 'listVideos', "")
        addDir(translation(30009), "KidsAltGenre", 'listGenres', "")
        addDir(translation(30008), "", 'search', "")
        xbmcplugin.endOfDirectory(pluginhandle)
...

That should fix the problem of broken genre links. Until they break the other links, I guess.

Then find def listVideos (NOT def listVideo) and replace it with this (without the ... at the beginning and end):

Code:
...
def listVideos(url):
    if not singleProfile:
        setProfile()
    xbmcplugin.setContent(pluginhandle, "movies")
    content = opener.open(url).read()
    if not 'id="page-LOGIN"' in content:
        if singleProfile and 'id="page-ProfilesGate"' in content:
            forceChooseProfile()
        else:
            if '<div id="queue"' in content:
                content = content[content.find('<div id="queue"'):]
            content = content.replace("\\t","").replace("\\n", "").replace("\\", "")
            match1 = re.compile('<span id="dbs(.+?)_.+?alt=".+?" src="(.+?)"', re.DOTALL).findall(content)
            match2 = re.compile('<span class="title "><a id="b(.+?)_', re.DOTALL).findall(content)
            match3 = re.compile('<img class="boxart" src="(.+?)" alt="(.+?)".+?/><a class="playHover" href=".+?WiPlayer\\?movieid=(.+?)&', re.DOTALL).findall(content)
            match4 = re.compile('<img  class="boxShotImg hideBobBoxshot" alt="([^"]+?)" src=".+?" ><a id="[^"]+?" class="bobbable popLink hideBobBoxshot playLink full" href="[^"]+?WiPlayer\\?movieid=([^"]+?)&', re.DOTALL).findall(content)
            if match1:
                for videoID, thumbUrl in match1:
                    listVideo(videoID, "", thumbUrl, False, False)
            elif match2:
                for videoID in match2:
                    listVideo(videoID, "", "", False, False)
            elif match3:
                for thumbUrl, vidTitle, videoID in match3:
                    listVideo(videoID, vidTitle, thumbUrl, False, False)
            elif match4:
                for vidTitle, videoID in match4:
                    listVideo(videoID, vidTitle, "", False, False)
            match = re.compile('&pn=(.+?)&', re.DOTALL).findall(url)
            if match:
                currentPage = match[0]
                nextPage = str(int(currentPage)+1)
                addDir(translation(30001), url.replace("&pn="+currentPage+"&", "&pn="+nextPage+"&"), 'listVideos', "")
            if forceView:
                xbmc.executebuiltin('Container.SetViewMode('+viewIdVideos+')')
            xbmcplugin.endOfDirectory(pluginhandle)
    else:
        deleteCookies()
        xbmc.executebuiltin('XBMC.Notification(Info:,'+str(translation(30127))+',10000)')
...

And that should successfully scrape their new format. For now.
Reply
awesome - thanks urashimakt, got the genres working again!
Reply
(2014-05-16, 00:00)urashimakt Wrote: The Netflix website is obviously undergoing some pretty constant changes. The regex I wrote a couple weeks ago to scrape genres might no longer be sufficient and their own genre links at the top of their website are defunct (I'm not sure how they've gone on so long without noticing that). The good news is they have alternative links for those genres that do work and I've added a new regex for scraping that I'll share with you guys now.

You can either download my copy of default.py which has the below changes and more (for convenience) or implement the basic work-arounds below on your own file.

Open up your default.py and find def index, then paste this in its place (without the ... at the beginning and end):

Code:
...
def index():
    if login():
        addDir(translation(30002), urlMain+"/MyList?leid=595&link=seeall", 'listVideos', "")
        addDir(translation(30010), "", 'listViewingActivity', "")
        addDir(translation(30003), urlMain+"/WiRecentAdditionsGallery?nRR=releaseDate&nRT=all&pn=1&np=1&actionMethod=json", 'listVideos', "")
        addDir(translation(30004), urlMain+"/WiHD?dev=PC&pn=1&np=1&actionMethod=json", 'listVideos', "")
        addDir(translation(30005), urlMain+"/WiAltGenre?agid=83&pn=1&np=1&actionMethod=json", 'listVideos', "")
        addDir(translation(30007), "WiAltGenre", 'listGenres', "")
        addDir(translation(30006), urlMain+"/WiAltGenre?agid=6839&pn=1&np=1&actionMethod=json", 'listVideos', "")
        addDir(translation(30009), "KidsAltGenre", 'listGenres', "")
        addDir(translation(30008), "", 'search', "")
        xbmcplugin.endOfDirectory(pluginhandle)
...

That should fix the problem of broken genre links. Until they break the other links, I guess.

Then find def listVideos (NOT def listVideo) and replace it with this (without the ... at the beginning and end):

Code:
...
def listVideos(url):
    if not singleProfile:
        setProfile()
    xbmcplugin.setContent(pluginhandle, "movies")
    content = opener.open(url).read()
    if not 'id="page-LOGIN"' in content:
        if singleProfile and 'id="page-ProfilesGate"' in content:
            forceChooseProfile()
        else:
            if '<div id="queue"' in content:
                content = content[content.find('<div id="queue"'):]
            content = content.replace("\\t","").replace("\\n", "").replace("\\", "")
            match1 = re.compile('<span id="dbs(.+?)_.+?alt=".+?" src="(.+?)"', re.DOTALL).findall(content)
            match2 = re.compile('<span class="title "><a id="b(.+?)_', re.DOTALL).findall(content)
            match3 = re.compile('<img class="boxart" src="(.+?)" alt="(.+?)".+?/><a class="playHover" href=".+?WiPlayer\\?movieid=(.+?)&', re.DOTALL).findall(content)
            match4 = re.compile('<img  class="boxShotImg hideBobBoxshot" alt="([^"]+?)" src=".+?" ><a id="[^"]+?" class="bobbable popLink hideBobBoxshot playLink full" href="[^"]+?WiPlayer\\?movieid=([^"]+?)&', re.DOTALL).findall(content)
            if match1:
                for videoID, thumbUrl in match1:
                    listVideo(videoID, "", thumbUrl, False, False)
            elif match2:
                for videoID in match2:
                    listVideo(videoID, "", "", False, False)
            elif match3:
                for thumbUrl, vidTitle, videoID in match3:
                    listVideo(videoID, vidTitle, thumbUrl, False, False)
            elif match4:
                for vidTitle, videoID in match4:
                    listVideo(videoID, vidTitle, "", False, False)
            match = re.compile('&pn=(.+?)&', re.DOTALL).findall(url)
            if match:
                currentPage = match[0]
                nextPage = str(int(currentPage)+1)
                addDir(translation(30001), url.replace("&pn="+currentPage+"&", "&pn="+nextPage+"&"), 'listVideos', "")
            if forceView:
                xbmc.executebuiltin('Container.SetViewMode('+viewIdVideos+')')
            xbmcplugin.endOfDirectory(pluginhandle)
    else:
        deleteCookies()
        xbmc.executebuiltin('XBMC.Notification(Info:,'+str(translation(30127))+',10000)')
...

And that should successfully scrape their new format. For now.

Thanks for this but unfortunately my next page still isn't working. Can you please take a look at this, maybe you can find a fix. I would really appreciate it.
Reply
thanks urashimakt, works again, strange enough your default.py dóesn't work, but when I make the changes mannualy it works.
Without you this plugin would be worthless at the moment, so thanks again.
Reply
[SOLVED]

http://forum.xbmc.org/showthread.php?tid...pid1614717
changing locale file helped.


When trying to open a show (or add to library) I keep getting script failed!
I'm in canada using unblock-us. All movies work fine, its just TV shows.

Any ideas?
Reply
(2014-04-13, 22:28)AddonScriptorDE Wrote: Hi,
found time to fix some stuff. Also added webremote support.

v1.2.6:
- Fixed login problem
- Fixed gotham message bug
- Some other small fixes
- Added remote/webcontrol support

On the last pages, some of you had problems with netflix_utility and xbmc.log file. I don't know why it's locked. It does not access it.
To solve it, exit the browser via the mapped key instead of just using ALT+F4 (else the utility keeps running).

Some also still had problems with dns/vpn. Have you tried the "locale" thing?

(2014-04-12, 20:50)rmrende Wrote: Has anyone else had this problem?
Looks like you have problems with ssl. Are you using a proxy? If so, it must support ssl.

To all other users:
If your problem is still present, just repost it (with detailed infos please). If i find enough time, i'll try to help...

Webremote:
The webremote stuff must be activated via the addon settings. Under linux, you need to have xdotool installed. Under OSX, you'll need cliclick.
For now, the controls are not mappable. Here is a list of all current implemented controls:
Code:
Play/Pause : ACTION_SELECT_ITEM
Seek backward : ACTION_MOVE_LEFT
Seek forward : ACTION_MOVE_RIGHT
Volume Up : ACTION_MOVE_UP
Volume Down : ACTION_MOVE_DOWN
Close Browser: ACTION_SHOW_INFO | ACTION_SHOW_GUI | ACTION_STOP | ACTION_PARENT_DIR | ACTION_PREVIOUS_MENU | KEY_BUTTON_BACK
For me, only some action IDs worked to close the browser. You can view all available actions IDs here. Also try some other IDs yourself manually. Maybe i'll add some mapping solutions later.
If you have the webremote thing enabled, but you exit via the normal remote, you'll have to hit any key before you are able to control xbmc again...

Greetings,
asde

Can anyone explain WebRemote to me a little more? I'm very interested in trying this addon, but my whole family uses the XBMCRemote app on iOS, so we can't configure a physical remote for it. I also use the web interface to control XBMC on occasion, so that would be an option. I keep a laptop next to my couch. So what does WebRemote allow you to do? How does it work? Any other info??

Thanks!
Reply
When NetfliXBMC launches Chrome and Webremote is active, infrared signals received by the computer from a physical remote are mapped to certain keyboard commands that control the browser-based Netflix.

You cannot control it with XBMCRemote because that is sent over your network and received directly by the XBMC application, pretty much skipping any interpretation by your OS. If there's an app that allows you to send keyboard commands to your computer you could rig that to do what Webremote does. Otherwise, buy a cheap Windows Media remote from Amazon. Should be less than $20.
Reply
Hi

I just want to say that this is an absolutely awesome extension that makes watching Netflix in XBMC a breeze and a pleasure. And I know that is not an easy thing to accomplish, since creating any kind of unofficial Netflix app is usually quite hard because of the DRM, Silverlight etc.

I especially like using this extension with IE 11 in Windows 8.1, as this transition is a lot smoother between XBMC and the browser - it starts up in full screen mode directly, and I *think* it is actually using Netflix's HTML 5 player that they have been working on with Microsoft. It almost looks like it is running directly in XBMC, you can't easily tell the stream is being shown in a full-screen browser window.

I have one problem though, the remote key mappings do not seem to work for me in IE11. For example, I have mapped the Play/Pause key to the play button on my MCE remote, which in reality sends a Ctrl+P keyboard shortcut. In Chrome this works fine to pause/resume the Netflix stream, but in IE11 this brings up the Print dialog!

Is there a way to get the key control utility working correctly for IE11 (i.e. bypass the built-in IE keyboard shortcuts)? I am willing to get my hands dirty and help debug/write some code if that will help as well...
Reply
I feel your pain. First off, for me IE11 is still using Silverlight (I'm in Canada), and due to that the key mappings are busted. I validated this by trying to use any keyboard shortcuts while using netflix in directly in IE (not using XBMC). the only thing that works for me is space and enter. I could not skip forward/back, etc.

I've switched to Chrome, for some reason that works with keyboard bindings. I've only got play/pause mapped to spacebar and skip forward/back mapped to right/left direction keys and it works pretty well.



(2014-05-21, 13:17)rikoe Wrote: Hi

I just want to say that this is an absolutely awesome extension that makes watching Netflix in XBMC a breeze and a pleasure. And I know that is not an easy thing to accomplish, since creating any kind of unofficial Netflix app is usually quite hard because of the DRM, Silverlight etc.

I especially like using this extension with IE 11 in Windows 8.1, as this transition is a lot smoother between XBMC and the browser - it starts up in full screen mode directly, and I *think* it is actually using Netflix's HTML 5 player that they have been working on with Microsoft. It almost looks like it is running directly in XBMC, you can't easily tell the stream is being shown in a full-screen browser window.

I have one problem though, the remote key mappings do not seem to work for me in IE11. For example, I have mapped the Play/Pause key to the play button on my MCE remote, which in reality sends a Ctrl+P keyboard shortcut. In Chrome this works fine to pause/resume the Netflix stream, but in IE11 this brings up the Print dialog!

Is there a way to get the key control utility working correctly for IE11 (i.e. bypass the built-in IE keyboard shortcuts)? I am willing to get my hands dirty and help debug/write some code if that will help as well...
Reply
(2014-05-21, 14:12)damonbrodie Wrote: I've switched to Chrome, for some reason that works with keyboard bindings. I've only got play/pause mapped to spacebar and skip forward/back mapped to right/left direction keys and it works pretty well.

I've since deduced that NetflixXBMC is *supposed* to launch Chrome directly in fullscreen as well (like it does with IE 11 for me), but I've read anecdotally online that kiosk mode is not working properly in Chrome under Windows 8/8.1. Anyone running Windows 8 with XBMC and NetfliXBMC that have seen a similar issue and have managed to fix it?

I'll be happy to use Chrome with NetfliXBMC as well (since the keyboard bindings work) if I can get the kiosk mode to work. Although I am still holding out hope that the IE11 HTML 5 stream on Windows 8.1 can stream proper 1080p content instead of 720p like the Silverlight plugin...
Reply
  •   
  • 1
  • 41
  • 42
  • 43(current)
  • 44
  • 45
  • 86
  •   



Logout Mark Read Team Forum Stats Members Help
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)7
This forum uses Lukasz Tkacz MyBB addons.