Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
Spark-NV committed Apr 13, 2022
1 parent ce6cb12 commit 2f05f7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions OpenPHT-1.9-Settings-Service/src/oe.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,11 +820,11 @@ def get_os_release():
############################################################################################

try:
configFile = '%s/userdata/addon_data/service.libreelec.settings/oe_settings.xml' % XBMC_USER_HOME
if not os.path.exists('%s/userdata/addon_data/service.libreelec.settings' % XBMC_USER_HOME):
configFile = '%s/userdata/addon_data/service.coreelec.settings/oe_settings.xml' % XBMC_USER_HOME
if not os.path.exists('%s/userdata/addon_data/service.coreelec.settings' % XBMC_USER_HOME):
if os.path.exists('%s/userdata/addon_data/service.openelec.settings' % XBMC_USER_HOME):
shutil.copytree(('%s/userdata/addon_data/service.openelec.settings' % XBMC_USER_HOME),
('%s/userdata/addon_data/service.libreelec.settings' % XBMC_USER_HOME))
('%s/userdata/addon_data/service.coreelec.settings' % XBMC_USER_HOME))
with open(configFile,'r+') as f:
xml = f.read()
xml = xml.replace("<openelec>","<libreelec>")
Expand All @@ -833,7 +833,7 @@ def get_os_release():
f.write(xml)
f.truncate()
else:
os.makedirs('%s/userdata/addon_data/service.libreelec.settings' % XBMC_USER_HOME)
os.makedirs('%s/userdata/addon_data/service.coreelec.settings' % XBMC_USER_HOME)
if not os.path.exists('%s/services' % CONFIG_CACHE):
os.makedirs('%s/services' % CONFIG_CACHE)
except:
Expand Down
2 changes: 1 addition & 1 deletion OpenPHT-1.9-Settings-Service/src/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, oeMain):
oeMain.dbg_log('_service_::__init__', 'enter_function', 0)
self.oe = oeMain
self.wait_evt = threading.Event()
self.socket_file = '/var/run/service.libreelec.settings.sock'
self.socket_file = '/var/run/service.coreelec.settings.sock'
self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
self.sock.setblocking(1)
if os.path.exists(self.socket_file):
Expand Down

0 comments on commit 2f05f7a

Please sign in to comment.