2015-09-24, 03:30
(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.