Add files via upload

This commit is contained in:
gutosie
2021-02-28 21:26:55 +02:00
committed by GitHub
parent 125728acef
commit 732c55834b

View File

@@ -860,15 +860,14 @@ class NeoBootImageChoose(Screen):
ybox.setTitle(_('Installation')) ybox.setTitle(_('Installation'))
else: else:
try: try:
from Plugins.Extensions.NeoBoot.files.tools import Opis from Plugins.Extensions.ImageDownloader.main import STBmodelsScreen
self.session.open(Opis) self.session.open(STBmodelsScreen)
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)))
mess = _('Sorry cannot open Image Downloader.\nAccess Fails with Error code 0x05.') mess = _('Sorry cannot open Image Downloader.\nAccess Fails with Error code 0x05.')
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO) self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
def InstallImageDownloader(self, yesno): def InstallImageDownloader(self, yesno):
if yesno: if yesno:
cmd = 'mkdir /tmp/install; touch /tmp/install/plugin.txt; rm -rf /tmp/*.ipk' cmd = 'mkdir /tmp/install; touch /tmp/install/plugin.txt; rm -rf /tmp/*.ipk'