Update plugin.py

This commit is contained in:
gutosie
2021-11-29 15:40:28 +02:00
committed by GitHub
parent cbc5932dcc
commit d74081fc73

View File

@@ -1660,18 +1660,15 @@ def main(session, **kwargs):
if fileExists('' + LinkNeoBoot + '/.location') and fileExists('%sImageBoot/.neonextboot' % getNeoLocation()):
f2 = open('%sImageBoot/.neonextboot' % getNeoLocation(), 'r')
mypath2 = f2.readline().strip()
f2.close()
if mypath2 != 'Flash' or mypath2 == 'Flash' and checkimage():
if getCheckActivateVip() != getBoxMacAddres():
session.open(MessageBox, _('Instal neoobot from github'), type=MessageBox.TYPE_ERROR)
f2.close()
if mypath2 != 'Flash' or mypath2 == 'Flash' and checkimage() : #and getCheckActivateVip() == getBoxMacAddres():
if fileExists('/.multinfo') or fileExists('/usr/lib/periodon/.fullaccess'):
session.open(NeoBootImageChoose)
else:
if fileExists('/.multinfo') or fileExists('/usr/lib/periodon/.fullaccess'):
session.open(NeoBootImageChoose)
if float(PLUGINVERSION) != version:
session.open(MyUpgrade)
else:
if float(PLUGINVERSION) != version:
session.open(MyUpgrade)
else:
session.open(NeoBootImageChoose)
session.open(NeoBootImageChoose)
else:
session.open(MessageBox, _('Sorry, Unable to install, bad satellite receiver or you do not have the full plug-in version\n The full version of the NEO VIP plugin is on address:\nkrzysztofgutosie@.gmail.com'), type=MessageBox.TYPE_ERROR)
else: