mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-05 05:35:39 +01:00
update 9.15
This commit is contained in:
@@ -56,8 +56,8 @@ else:
|
|||||||
from Screens.Console import Console
|
from Screens.Console import Console
|
||||||
|
|
||||||
loggscrash = time.localtime(time.time())
|
loggscrash = time.localtime(time.time())
|
||||||
PLUGINVERSION = '9.14'
|
PLUGINVERSION = '9.15'
|
||||||
UPDATEVERSION = '9.14'
|
UPDATEVERSION = '9.15'
|
||||||
UPDATEDATE = '"+%Y04%d"'
|
UPDATEDATE = '"+%Y04%d"'
|
||||||
LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
|
LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
|
||||||
|
|
||||||
@@ -1588,7 +1588,8 @@ class NeoBootImageChoose(Screen):
|
|||||||
def myClose(self, message):
|
def myClose(self, message):
|
||||||
self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
|
self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
|
|
||||||
def readline(filename, iferror = ''):
|
def readline(filename, iferror = ''):
|
||||||
if iferror[:3] == 'or:':
|
if iferror[:3] == 'or:':
|
||||||
data = iferror[3:]
|
data = iferror[3:]
|
||||||
@@ -1603,7 +1604,6 @@ def readline(filename, iferror = ''):
|
|||||||
PrintException()
|
PrintException()
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
def checkInternet():
|
def checkInternet():
|
||||||
if fileExists('/usr/lib/python3.8'):
|
if fileExists('/usr/lib/python3.8'):
|
||||||
pass
|
pass
|
||||||
@@ -1621,7 +1621,6 @@ def checkInternet():
|
|||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
def checkimage():
|
def checkimage():
|
||||||
mycheck = False
|
mycheck = False
|
||||||
if not fileExists('/proc/stb/info') or not fileExists('' + LinkNeoBoot + '/neoskins/neo/neo_skin.py') or not fileExists('' + LinkNeoBoot + '/bin/utilsbh') or not fileExists('' + LinkNeoBoot + '/stbinfo.cfg'):
|
if not fileExists('/proc/stb/info') or not fileExists('' + LinkNeoBoot + '/neoskins/neo/neo_skin.py') or not fileExists('' + LinkNeoBoot + '/bin/utilsbh') or not fileExists('' + LinkNeoBoot + '/stbinfo.cfg'):
|
||||||
@@ -1633,18 +1632,13 @@ def checkimage():
|
|||||||
def main(session, **kwargs):
|
def main(session, **kwargs):
|
||||||
vip = checkimage()
|
vip = checkimage()
|
||||||
if vip == 1:
|
if vip == 1:
|
||||||
|
|
||||||
if not fileExists('' + LinkNeoBoot + '/.location'):
|
if not fileExists('' + LinkNeoBoot + '/.location'):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
if not fileExists('%sImageBoot/.version' % getNeoLocation()):
|
if not fileExists('%sImageBoot/.version' % getNeoLocation()):
|
||||||
if fileExists('' + LinkNeoBoot + '/files/mountpoint.sh'):
|
if fileExists('' + LinkNeoBoot + '/files/mountpoint.sh'):
|
||||||
os.system('chmod 0755 ' + LinkNeoBoot + '/files/mountpoint.sh; ' + LinkNeoBoot + '/files/mountpoint.sh')
|
os.system('chmod 0755 ' + LinkNeoBoot + '/files/mountpoint.sh; ' + LinkNeoBoot + '/files/mountpoint.sh')
|
||||||
else:
|
|
||||||
pass
|
|
||||||
|
|
||||||
if not fileExists('/.multinfo') and fileExists('' + LinkNeoBoot + '/.location'):
|
if not fileExists('/.multinfo') and fileExists('' + LinkNeoBoot + '/.location'):
|
||||||
#check instalation
|
|
||||||
from Plugins.Extensions.NeoBoot.files.stbbranding import getCheckInstal1, getCheckInstal2, getCheckInstal3
|
from Plugins.Extensions.NeoBoot.files.stbbranding import getCheckInstal1, getCheckInstal2, getCheckInstal3
|
||||||
if fileExists('/tmp/error_neo') :
|
if fileExists('/tmp/error_neo') :
|
||||||
if fileExists('/tmp/error_neo'):
|
if fileExists('/tmp/error_neo'):
|
||||||
@@ -1658,21 +1652,22 @@ def main(session, **kwargs):
|
|||||||
if getCheckInstal3() == '3':
|
if getCheckInstal3() == '3':
|
||||||
os.system('echo "\nNeoboot installation errors 3:\nfile neo.sh is error - 3\n" >> /tmp/error_neo')
|
os.system('echo "\nNeoboot installation errors 3:\nfile neo.sh is error - 3\n" >> /tmp/error_neo')
|
||||||
session.open(MessageBox, _('Neoboot plugin installed with ERRORS! Not work properly! The error number is 3'), type=MessageBox.TYPE_ERROR)
|
session.open(MessageBox, _('Neoboot plugin installed with ERRORS! Not work properly! The error number is 3'), type=MessageBox.TYPE_ERROR)
|
||||||
|
if not fileExists('%sImageBoot/.version' % getNeoLocation()):
|
||||||
|
if fileExists('' + LinkNeoBoot + '/files/mountpoint.sh'):
|
||||||
|
os.system('chmod 0755 ' + LinkNeoBoot + '/files/mountpoint.sh; ' + LinkNeoBoot + '/files/mountpoint.sh')
|
||||||
|
if checkInternet():
|
||||||
|
if not os.path.exists('/tmp/.finishdate'):
|
||||||
|
os.system('date "+%Y%m%d" > /tmp/.finishdate')
|
||||||
if not fileExists('/usr/lib/periodon/.kodn'):
|
if not fileExists('/usr/lib/periodon/.kodn'):
|
||||||
session.open(MessageBox, _('Get a free test to the full vip version.'), type=MessageBox.TYPE_ERROR)
|
session.open(MessageBox, _('Get a free test to the full vip version.'), type=MessageBox.TYPE_ERROR)
|
||||||
elif fileExists('/usr/lib/periodon/.kodn') and fileExists('/tmp/.nkod'):
|
elif fileExists('/usr/lib/periodon/.kodn') and fileExists('/tmp/.nkod'):
|
||||||
if getTestToTest() != UPDATEVERSION:
|
if getTestToTest() != UPDATEVERSION:
|
||||||
session.open(MessageBox, _('New version update neoboot is available!\nPlease upgrade your flash plugin.'), type=MessageBox.TYPE_ERROR)
|
session.open(MessageBox, _('New version update neoboot is available!\nPlease upgrade your flash plugin.'), type=MessageBox.TYPE_ERROR)
|
||||||
if not fileExists('/usr/lib/periodon/.accessdate'): #timeoff
|
if not fileExists('/usr/lib/periodon/.accessdate'): #timeoff
|
||||||
session.open(MessageBox, _('VIP access error. Reinstall the plugin.'), type=MessageBox.TYPE_ERROR)
|
session.open(MessageBox, _('VIP access error. Reinstall the plugin.'), type=MessageBox.TYPE_ERROR)
|
||||||
if getAccesDate() == 'timeoff': #timeoff
|
if getAccesDate() == 'timeoff': #timeoff
|
||||||
session.open(MessageBox, _('Neoboot vip version has expired, please re-access.'), type=MessageBox.TYPE_ERROR)
|
session.open(MessageBox, _('Neoboot vip version has expired, please re-access.'), type=MessageBox.TYPE_ERROR)
|
||||||
else:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
pass
|
|
||||||
|
|
||||||
version = 0
|
version = 0
|
||||||
if fileExists('%sImageBoot/.version' % getNeoLocation()):
|
if fileExists('%sImageBoot/.version' % getNeoLocation()):
|
||||||
f = open('%sImageBoot/.version' % getNeoLocation())
|
f = open('%sImageBoot/.version' % getNeoLocation())
|
||||||
@@ -1692,13 +1687,8 @@ def main(session, **kwargs):
|
|||||||
LogCrashGS('%02d:%02d:%d %02d:%02d:%02d - %s\r\n' % (loggscrash.tm_mday, loggscrash.tm_mon, loggscrash.tm_year, loggscrash.tm_hour, loggscrash.tm_min, loggscrash.tm_sec, str(e)))
|
LogCrashGS('%02d:%02d:%d %02d:%02d:%02d - %s\r\n' % (loggscrash.tm_mday, loggscrash.tm_mon, loggscrash.tm_year, loggscrash.tm_hour, loggscrash.tm_min, loggscrash.tm_sec, str(e)))
|
||||||
session.open(MessageBox, _('Sorry cannot open neo menu My Upgrade.\nAccess Fails with Error code 0x06.'), type=MessageBox.TYPE_ERROR)
|
session.open(MessageBox, _('Sorry cannot open neo menu My Upgrade.\nAccess Fails with Error code 0x06.'), type=MessageBox.TYPE_ERROR)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
if checkInternet():
|
session.open(NeoBootImageChoose)
|
||||||
os.system('date "+%Y%m%d" > /tmp/.finishdate')
|
|
||||||
session.open(NeoBootImageChoose)
|
|
||||||
else:
|
|
||||||
#session.open(MessageBox, _('Geen internet'), type=MessageBox.TYPE_ERROR)
|
|
||||||
session.open(NeoBootImageChoose)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
loggscrash = time.localtime(time.time())
|
loggscrash = time.localtime(time.time())
|
||||||
LogCrashGS('%02d:%02d:%d %02d:%02d:%02d - %s\r\n' % (loggscrash.tm_mday, loggscrash.tm_mon, loggscrash.tm_year, loggscrash.tm_hour, loggscrash.tm_min, loggscrash.tm_sec, str(e)))
|
LogCrashGS('%02d:%02d:%d %02d:%02d:%02d - %s\r\n' % (loggscrash.tm_mday, loggscrash.tm_mon, loggscrash.tm_year, loggscrash.tm_hour, loggscrash.tm_min, loggscrash.tm_sec, str(e)))
|
||||||
@@ -1717,7 +1707,7 @@ def main(session, **kwargs):
|
|||||||
self.session.open(MessageBox, _('Sorry cannot open neo menu. Not supported tuners. '), type=MessageBox.TYPE_ERROR)
|
self.session.open(MessageBox, _('Sorry cannot open neo menu. Not supported tuners. '), type=MessageBox.TYPE_ERROR)
|
||||||
else:
|
else:
|
||||||
session.open(MessageBox, (_('Sorry, Unable to install, bad satellite receiver or you do not have the full plug-in version\n\nThe full version of the NEO VIP plugin is on address:\nkrzysztofgutosie@.gmail.com')), type=MessageBox.TYPE_ERROR)
|
session.open(MessageBox, (_('Sorry, Unable to install, bad satellite receiver or you do not have the full plug-in version\n\nThe full version of the NEO VIP plugin is on address:\nkrzysztofgutosie@.gmail.com')), type=MessageBox.TYPE_ERROR)
|
||||||
|
|
||||||
def menu(menuid, **kwargs):
|
def menu(menuid, **kwargs):
|
||||||
if menuid == 'mainmenu':
|
if menuid == 'mainmenu':
|
||||||
return [(_('NeoBOOT'),
|
return [(_('NeoBOOT'),
|
||||||
|
|||||||
Reference in New Issue
Block a user