def checkInstalled():
	current = ''
	for skin in SKINCHECK:
		skinpath = os.path.join(ADDONS,skin)
		if os.path.exists(skinpath):
			current = skin
	if current == SKINCHECK[0]:
		yes_pressed = DIALOG.yesno(ADDONTITLE,"[COLOR dodgerblue]Aftermath[/COLOR] Zephyr is currently outdated and is no longer being updated.", "Please download one of the newer community builds.", yeslabel="Build Menu", nolabel="Ignore")
		if yes_pressed:	xbmc.executebuiltin('ActivateWindow(10025 , "plugin://%s/?mode=builds", return)' % ADDON_ID)
		else: DIALOG.ok(ADDONTITLE, 'You can still install a community build from the [COLOR dodgerblue]Aftermath[/COLOR] Wizard.')
	elif current == SKINCHECK[1]:
		yes_pressed = DIALOG.yesno(ADDONTITLE,"[COLOR dodgerblue]Aftermath[/COLOR] Silvo is currently outdated and is no longer being updated.", "Please download one of the newer community builds.", yeslabel="Build Menu", nolabel="Ignore")
		if yes_pressed:	xbmc.executebuiltin('ActivateWindow(10025 , "plugin://%s/?mode=builds", return)' % ADDON_ID)
		else: DIALOG.ok(ADDONTITLE, 'You can still install a community build from the [COLOR dodgerblue]Aftermath[/COLOR] Wizard.')
	elif current == SKINCHECK[2]:
		if KODIV >= 16:
			gui   = os.path.join(ADDOND, SKINCHECK[2], 'settings.xml')
			f     = open(gui,mode='r'); g = f.read(); f.close()
			match = re.compile('<setting id=\"SubSettings.3.Label\" type=\"string\">(.+?)<\/setting>').findall(g)
			if len(match):
				name, build, ver = match[0].replace('[COLOR dodgerblue]','').replace('[/COLOR]','').split(' ')
			else:
				build = "Simple"
				ver = "v0.1"
		else:
			gui   = os.path.join(USERDATA,'guisettings.xml')
			f     = open(gui,mode='r'); g = f.read(); f.close()
			match = re.compile('<setting type=\"string\" name=\"skin.aftermath.simple.SubSettings.3.Label\">(.+?)<\/setting>').findall(g)
			name, build, ver = match[0].replace('[COLOR dodgerblue]','').replace('[/COLOR]','').split(' ')
		wiz.setS('buildname', 'Aftermath %s' % build)
		wiz.setS('buildversion', ver[1:])
		wiz.setS('lastbuildcheck', str(NEXTCHECK))
		checkUpdate()
	elif current == SKINCHECK[3]:
		yes_pressed = DIALOG.yesno(ADDONTITLE,"[COLOR dodgerblue]Aftermath[/COLOR] CCM is currently outdated and is no longer being updated.", "Please download one of the newer community builds.", yeslabel="Build Menu", nolabel="Ignore")
		if yes_pressed:	xbmc.executebuiltin('ActivateWindow(10025 , "plugin://%s/?mode=builds", return)' % ADDON_ID)
		else: DIALOG.ok(ADDONTITLE, 'You can still install a community build from the [COLOR dodgerblue]Aftermath[/COLOR] Wizard.')
	else:
		notify.firstRunSettings()
		notify.firstRun()
Example #2
0
def checkInstalled():
	current = ''
	for skin in SKINCHECK:
		skinpath = os.path.join(ADDONS,skin)
		if os.path.exists(skinpath):
			current = skin
	if current == SKINCHECK[0]:
		yes_pressed = DIALOG.yesno(ADDONTITLE,"[COLOR dodgerblue]Aftermath[/COLOR] Zephyr is currently outdated and is no longer being updated.", "Please download one of the newer community builds.", yeslabel="Build Menu", nolabel="Ignore")
		if yes_pressed:	xbmc.executebuiltin('ActivateWindow(10025 , "plugin://%s/?mode=builds", return)' % ADDON_ID)
		else: DIALOG.ok(ADDONTITLE, 'You can still install a community build from the [COLOR dodgerblue]Aftermath[/COLOR] Wizard.')
	elif current == SKINCHECK[1]:
		yes_pressed = DIALOG.yesno(ADDONTITLE,"[COLOR dodgerblue]Aftermath[/COLOR] Silvo is currently outdated and is no longer being updated.", "Please download one of the newer community builds.", yeslabel="Build Menu", nolabel="Ignore")
		if yes_pressed:	xbmc.executebuiltin('ActivateWindow(10025 , "plugin://%s/?mode=builds", return)' % ADDON_ID)
		else: DIALOG.ok(ADDONTITLE, 'You can still install a community build from the [COLOR dodgerblue]Aftermath[/COLOR] Wizard.')
	elif current == SKINCHECK[2]:
		if KODIV >= 16:
			gui   = os.path.join(ADDOND, SKINCHECK[2], 'settings.xml')
			f     = open(gui,mode='r'); g = f.read(); f.close()
			match = re.compile('<setting id=\"SubSettings.3.Label\" type=\"string\">(.+?)<\/setting>').findall(g)
			if len(match):
				name, build, ver = match[0].replace('[COLOR dodgerblue]','').replace('[/COLOR]','').split(' ')
			else:
				build = "Simple"
				ver = "v0.1"
		else:
			gui   = os.path.join(USERDATA,'guisettings.xml')
			f     = open(gui,mode='r'); g = f.read(); f.close()
			match = re.compile('<setting type=\"string\" name=\"skin.aftermath.simple.SubSettings.3.Label\">(.+?)<\/setting>').findall(g)
			name, build, ver = match[0].replace('[COLOR dodgerblue]','').replace('[/COLOR]','').split(' ')
		wiz.setS('buildname', 'Aftermath %s' % build)
		wiz.setS('buildversion', ver[1:])
		wiz.setS('lastbuildcheck', str(NEXTCHECK))
		checkUpdate()
	elif current == SKINCHECK[3]:
		yes_pressed = DIALOG.yesno(ADDONTITLE,"[COLOR dodgerblue]Aftermath[/COLOR] CCM is currently outdated and is no longer being updated.", "Please download one of the newer community builds.", yeslabel="Build Menu", nolabel="Ignore")
		if yes_pressed:	xbmc.executebuiltin('ActivateWindow(10025 , "plugin://%s/?mode=builds", return)' % ADDON_ID)
		else: DIALOG.ok(ADDONTITLE, 'You can still install a community build from the [COLOR dodgerblue]Aftermath[/COLOR] Wizard.')
	else:
		notify.firstRunSettings()
		notify.firstRun()
Example #3
0
        wiz.log('[Installed Check] Restoring Real Debrid Data', xbmc.LOGNOTICE)
    if KEEPLOGIN == 'true':
        loginit.loginIt('restore', 'all')
        wiz.log('[Installed Check] Restoring Login Data', xbmc.LOGNOTICE)
    wiz.clearS('install')
else:
    wiz.log("[Installed Check] Not Enabled", xbmc.LOGNOTICE)

if FAILED == False:
    wiz.log("[Build Check] Started", xbmc.LOGNOTICE)
    if not WORKING:
        wiz.log("[Build Check] Not a valid URL for Build File: %s" % BUILDFILE,
                xbmc.LOGNOTICE)
    elif BUILDCHECK == '' and BUILDNAME == '':
        wiz.log("[Build Check] First Run", xbmc.LOGNOTICE)
        notify.firstRun()
        wiz.setS('lastbuildcheck', str(NEXTCHECK))
    elif not BUILDNAME == '':
        wiz.log("[Build Check] Build Installed", xbmc.LOGNOTICE)
        if SKIN in ['skin.confluence', 'skin.estuary'
                    ] and not DEFAULTIGNORE == 'true':
            checkSkin()
            wiz.log("[Build Check] Build Installed: Checking Updates",
                    xbmc.LOGNOTICE)
            wiz.setS('lastbuildcheck', str(NEXTCHECK))
            checkUpdate()
        elif BUILDCHECK <= str(TODAY):
            wiz.log("[Build Check] Build Installed: Checking Updates",
                    xbmc.LOGNOTICE)
            wiz.setS('lastbuildcheck', str(NEXTCHECK))
            checkUpdate()
Example #4
0
			wiz.log('[Installed Check] Guifix url not working: %s' % gui)
	else:
		wiz.log('[Installed Check] Install seems to be completed correctly')
	if KEEPTRAKT == 'true': traktit.traktIt('restore', 'all'); wiz.log('[Installed Check] Restoring Trakt Data')
	if KEEPREAL  == 'true': debridit.debridIt('restore', 'all'); wiz.log('[Installed Check] Restoring Real Debrid Data')
	if KEEPLOGIN == 'true': loginit.loginIt('restore', 'all'); wiz.log('[Installed Check] Restoring Login Data')
	wiz.clearS('install')
else: wiz.log("[Installed Check] Not Enabled")

if failed == False:
	wiz.log("[Build Check] Started")
	if not WORKING:
		wiz.log("[Build Check] Not a valid URL for Build File: %s" % BUILDFILE)
	elif BUILDCHECK == '' and BUILDNAME == '':
		wiz.log("[Build Check] First Run")
		notify.firstRun()
		wiz.setS('lastbuildcheck', str(NEXTCHECK))
	elif not BUILDNAME == '':
		wiz.log("[Build Check] Build Installed")
		if SKIN in ['skin.confluence', 'skin.estuary'] and not DEFAULTIGNORE == 'true':
			checkSkin()
			wiz.log("[Build Check] Build Installed: Checking Updates")
			wiz.setS('lastbuildcheck', str(NEXTCHECK))
			checkUpdate()
		elif BUILDCHECK <= str(TODAY):
			wiz.log("[Build Check] Build Installed: Checking Updates")
			wiz.setS('lastbuildcheck', str(NEXTCHECK))
			checkUpdate()
		else: 
			wiz.log("[Build Check] Build Installed: Next check isnt until: %s / TODAY is: %s" % (BUILDCHECK, str(TODAY)))