summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/mv_ir.py
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-02-04 20:55:54 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-02-04 20:55:54 (GMT)
commit7167c5e121468ae197eb265c4cc7148e5614f186 (patch)
treeb0d5ac8c10bbed958ddbd1178e0b655e842c8f2c /abs/core/LinHES-config/mv_ir.py
parent69795c26377eeee86ebe7e3f775e4f1ae3854ee0 (diff)
downloadlinhes_pkgbuild-7167c5e121468ae197eb265c4cc7148e5614f186.zip
linhes_pkgbuild-7167c5e121468ae197eb265c4cc7148e5614f186.tar.gz
linhes_pkgbuild-7167c5e121468ae197eb265c4cc7148e5614f186.tar.bz2
LinHES-config: changes for xbmc to kodi
Diffstat (limited to 'abs/core/LinHES-config/mv_ir.py')
-rwxr-xr-xabs/core/LinHES-config/mv_ir.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/abs/core/LinHES-config/mv_ir.py b/abs/core/LinHES-config/mv_ir.py
index c0ec6fa..2f3de08 100755
--- a/abs/core/LinHES-config/mv_ir.py
+++ b/abs/core/LinHES-config/mv_ir.py
@@ -139,19 +139,19 @@ def setup_ir_remote(Remotetype,templates,mythhome,HostBlasterType,remotebucket):
cmd = "cp %s /etc/remote.run" %filename
mv_common.runcmd(cmd)
- #if remote has a Lircmap.xml file, use it for xbmc and plexht.
- xbmcfile= remote_path + "/Lircmap.xml"
+ #if remote has a Lircmap.xml file, use it for kodi and plexht.
+ kodifile= remote_path + "/Lircmap.xml"
- for app in ['XBMC', 'PlexHT']:
- if app == 'XBMC':
- userLircmap = mythhome+"/.xbmc/userdata/Lircmap.xml"
- userdirname = ".xbmc"
+ for app in ['Kodi', 'PlexHT']:
+ if app == 'Kodi':
+ userLircmap = mythhome+"/.kodi/userdata/Lircmap.xml"
+ userdirname = ".kodi"
elif app == 'PlexHT':
userLircmap = mythhome+"/.plexht/userdata/Lircmap.xml"
userdirname = ".plexht"
- if os.path.exists(xbmcfile):
- logging.debug(" %s lirc file present at %s", app, xbmcfile)
+ if os.path.exists(kodifile):
+ logging.debug(" %s lirc file present at %s", app, kodifile)
logging.info(" Setting up lirc for %s",app)
if not os.path.exists(mythhome+"/"+userdirname+"/userdata"):
logging.debug(" Creating %s/%s", mythhome, userdirname)
@@ -176,11 +176,11 @@ def setup_ir_remote(Remotetype,templates,mythhome,HostBlasterType,remotebucket):
cmd = ''' rm -f %s''' %(userLircmap)
mv_common.runcmd(cmd)
logging.debug(" Creating symlink for %s Lircmap.xml",app)
- os.symlink(xbmcfile, mythhome+"/"+userdirname+"/userdata/Lircmap.xml")
+ os.symlink(kodifile, mythhome+"/"+userdirname+"/userdata/Lircmap.xml")
except:
pass
else:
- logging.debug(" %s Lircmap file %s not present", userdirname, xbmcfile)
+ logging.debug(" %s Lircmap file %s not present", userdirname, kodifile)
logging.debug(" Checking if %s is a symlink", userLircmap)
if os.path.islink(userLircmap):
logging.info(" Removing symlink %s", userLircmap)