[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 2
(2015-09-24, 01:57)jimd3 Wrote: I use both browser.sh and netflix.lirc in this plugin.

Each time I get an upgrade, the browser.sh permissions are changed and removes the "executable" on the file.
I need to always do a chmod 755 browser.sh on each upgrade.
Is there a smarter way I can handle this?

I have edited the netflix.lirc in the plugin.video.netflixbmc directory to map the LIRC to my remote key definitions.
Each time I get an update, the file is overwritten.
This really isn't surprising.
Should I be editing this file directly or is there a preferred means of mapping the LIRC keys?

Any advice appreciated.

Jim

With regard to overwriting the lirc keys, I don't have a workaround right now.
In future this file should be copied/moved to <kodi_home>userdata/addon_data/plugin.video.netflixbmc/ and then the end user can edit it as much as desired without fear of overwriting.
Same goes for the browser script really, as people will often want to edit this.

I've actually got a little fix for the executable flag for now though, would it be possible for you to test it for me?

first, remove the executable status from the file again ( to be sure the fix below does work ) :
Code:
chmod -x browser.sh

then find this chunk in default.py
Code:
elif osLinux:
        if linuxUseShellScript:
            xbmc.executebuiltin('LIRC.Stop')
            
            call = '"'+browserScript+'" "'+url+'"';
            debug("Browser Call: " + call)
            subprocess.call(call, shell=True)
            
            xbmc.executebuiltin('LIRC.Start')
        else:
            launchChrome(url)

and replace it with:
Code:
elif osLinux:
        if linuxUseShellScript:
            # Ensure the browserScript is executable
            import stat
            st = os.stat(browserScript)
            os.chmod(browserScript, st.st_mode | stat.S_IEXEC)

            xbmc.executebuiltin('LIRC.Stop')

            call = '"'+browserScript+'" "'+url+'"';
            debug("Browser Call: " + call)
            subprocess.call(call, shell=True)

            xbmc.executebuiltin('LIRC.Start')
        else:
            launchChrome(url)

Then try starting a netflix show.
alelec kodi repo, hosting my binary addons not eligible for the official repo .
netflix, sbs ondemand, webdriver etc.

http://kodi.alelec.net/
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
Additional/Original Browser Option? - by durv - 2015-09-07, 05:07
RE: [RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 2 - by corona - 2015-09-24, 03:30
[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