mirror of
				https://github.com/gutosie/neoboot.git
				synced 2025-11-03 20:55:47 +01:00 
			
		
		
		
	update 9.15
This commit is contained in:
		@@ -56,8 +56,8 @@ else:
 | 
			
		||||
            from Screens.Console import Console
 | 
			
		||||
    	
 | 
			
		||||
loggscrash = time.localtime(time.time())
 | 
			
		||||
PLUGINVERSION = '9.14'
 | 
			
		||||
UPDATEVERSION = '9.14'
 | 
			
		||||
PLUGINVERSION = '9.15'
 | 
			
		||||
UPDATEVERSION = '9.15'
 | 
			
		||||
UPDATEDATE = '"+%Y04%d"'   
 | 
			
		||||
LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot' 
 | 
			
		||||
 | 
			
		||||
@@ -1589,6 +1589,7 @@ class NeoBootImageChoose(Screen):
 | 
			
		||||
        self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
 | 
			
		||||
        self.close()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def readline(filename, iferror = ''):
 | 
			
		||||
    if iferror[:3] == 'or:':
 | 
			
		||||
      data = iferror[3:]
 | 
			
		||||
@@ -1603,7 +1604,6 @@ def readline(filename, iferror = ''):
 | 
			
		||||
        PrintException()
 | 
			
		||||
    return data
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def checkInternet():
 | 
			
		||||
    if fileExists('/usr/lib/python3.8'):                     
 | 
			
		||||
        pass
 | 
			
		||||
@@ -1621,7 +1621,6 @@ def checkInternet():
 | 
			
		||||
        else:
 | 
			
		||||
            return True
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def checkimage():
 | 
			
		||||
    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'): 
 | 
			
		||||
@@ -1633,18 +1632,13 @@ def checkimage():
 | 
			
		||||
def main(session, **kwargs):
 | 
			
		||||
    vip = checkimage()
 | 
			
		||||
    if vip == 1:
 | 
			
		||||
    
 | 
			
		||||
        if not fileExists('' + LinkNeoBoot + '/.location'):
 | 
			
		||||
            pass
 | 
			
		||||
        else:
 | 
			
		||||
            if not fileExists('%sImageBoot/.version' % getNeoLocation()):
 | 
			
		||||
                if fileExists('' + 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'):
 | 
			
		||||
            #check instalation
 | 
			
		||||
            from Plugins.Extensions.NeoBoot.files.stbbranding import getCheckInstal1, getCheckInstal2, getCheckInstal3
 | 
			
		||||
            if fileExists('/tmp/error_neo') :
 | 
			
		||||
                if fileExists('/tmp/error_neo'):
 | 
			
		||||
@@ -1658,7 +1652,12 @@ def main(session, **kwargs):
 | 
			
		||||
                if getCheckInstal3() == '3':
 | 
			
		||||
                    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)
 | 
			
		||||
            
 | 
			
		||||
            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'):
 | 
			
		||||
                        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'):
 | 
			
		||||
@@ -1668,10 +1667,6 @@ def main(session, **kwargs):
 | 
			
		||||
                                session.open(MessageBox, _('VIP access error. Reinstall the plugin.'), type=MessageBox.TYPE_ERROR)
 | 
			
		||||
            if getAccesDate() == 'timeoff':       #timeoff
 | 
			
		||||
                                session.open(MessageBox, _('Neoboot vip version has expired, please re-access.'), type=MessageBox.TYPE_ERROR)
 | 
			
		||||
            else:
 | 
			
		||||
                    pass
 | 
			
		||||
        else:
 | 
			
		||||
                pass
 | 
			
		||||
                                
 | 
			
		||||
        version = 0
 | 
			
		||||
        if fileExists('%sImageBoot/.version' % getNeoLocation()):
 | 
			
		||||
@@ -1693,11 +1688,6 @@ def main(session, **kwargs):
 | 
			
		||||
                                session.open(MessageBox, _('Sorry cannot open neo menu My Upgrade.\nAccess Fails with Error code 0x06.'), type=MessageBox.TYPE_ERROR)
 | 
			
		||||
                    else:
 | 
			
		||||
                        try: 
 | 
			
		||||
                                if checkInternet():
 | 
			
		||||
                                        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:
 | 
			
		||||
				loggscrash = time.localtime(time.time())
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user