Exemple #1
0
		if yes: xbmc.executebuiltin("PlayMedia(plugin://%s/?mode=install&name=%s&url=fresh)" % (ADDON_ID, urllib.quote_plus(BUILDNAME)))
	elif SKIN in ['skin.confluence']:
		gui = wiz.checkBuild(BUILDNAME, 'gui')
		if gui == 'http://':
			DIALOG.ok(ADDONTITLE, "It looks like the skin settings was not applied to the build.", "Sadly no gui fix was attatched to the build", "You will need to reinstall the build and make sure to do a force close")
			wiz.log('Gui set to: http://')
		elif wiz.workingURL(gui):
			yes=DIALOG.yesno(ADDONTITLE, '%s was not installed correctly!' % BUILDNAME, 'It looks like the skin settings was not applied to the build.', 'Would you like to apply the guiFix?', nolabel='No Thanks!', yeslabel='Yes Please!')
			if yes: xbmc.executebuiltin("PlayMedia(plugin://%s/?mode=install&name=%s&url=gui)" % (ADDON_ID, urllib.quote_plus(BUILDNAME)))
			else: wiz.log('Gui url working but cancelled: %s' % gui)
		else:
			DIALOG.ok(ADDONTITLE, "It looks like the skin settings was not applied to the build.", "Sadly no gui fix was attatched to the build", "You will need to reinstall the build and make sure to do a force close")
			wiz.log('Gui url not working: %s' % gui)
	if KEEPTRAKT == 'true': traktit.traktIt('restore', 'all')
	if KEEPREAL  == 'true': debridit.debridIt('restore', 'all')
	wiz.clearS('install')

if not WORKING:
	wiz.log("Not a valid URL for Build File: %s" % BUILDFILE)
elif BUILDCHECK == '' and BUILDNAME == '':
	yes_pressed = DIALOG.yesno(ADDONTITLE,"Currently no build installed from %s." % ADDONTITLE, "Select 'Build Menu' to install a Community Build", yeslabel="Build Menu", nolabel="Ignore")
	if yes_pressed:	xbmc.executebuiltin('ActivateWindow(10025 , "plugin://%s/?mode=builds", return)' % ADDON_ID)
	wiz.setS('lastbuildcheck', str(NEXTCHECK))
elif not BUILDNAME == '':
	if BUILDCHECK <= str(TODAY):
		wiz.setS('lastbuildcheck', str(NEXTCHECK)); checkUpdate()
	else: 
		wiz.log("Next check isnt until: %s / TODAY is: %s" % (BUILDCHECK, str(TODAY)))

if KEEPTRAKT == 'true':
	if str(TODAY) >= TRAKTSAVE:
Exemple #2
0
         checkSkin()
     FAILED = True
 elif not EXTRACT == '100':
     wiz.log(
         "[Installed Check] Build was extracted %s/100 with [ERRORS: %s]" %
         (EXTRACT, EXTERROR), xbmc.LOGNOTICE)
     yes = DIALOG.yesno(
         ADDONTITLE,
         '[COLOR %s]%s[/COLOR] [COLOR %s]was not installed correctly!' %
         (COLOR1, COLOR2, BUILDNAME),
         'Installed: [COLOR %s]%s[/COLOR] / Error Count: [COLOR %s]%s[/COLOR]'
         % (COLOR1, EXTRACT, COLOR1, EXTERROR),
         'Would you like to try again?[/COLOR]',
         nolabel='[B]No Thanks![/B]',
         yeslabel='[B]Retry Install[/B]')
     wiz.clearS('build')
     FAILED = True
     if yes:
         wiz.ebi("PlayMedia(plugin://%s/?mode=install&name=%s&url=fresh)" %
                 (ADDON_ID, urllib.quote_plus(BUILDNAME)))
         wiz.log("[Installed Check] Fresh Install Re-activated",
                 xbmc.LOGNOTICE)
     else:
         wiz.log("[Installed Check] Reinstall Ignored")
 elif SKIN in ['skin.confluence', 'skin.estuary']:
     wiz.log("[Installed Check] Incorrect skin: %s" % SKIN, xbmc.LOGNOTICE)
     defaults = wiz.getS('defaultskin')
     if not defaults == '':
         if os.path.exists(ADDONS, defaults):
             skinSwitch.swapSkins(defaults)
             x = 0
Exemple #3
0
			elif int(id) > int(NOTEID):
				wiz.log("[Notifications] id: %s" % str(int(id)))
				wiz.setS('noteid', str(int(id)))
				wiz.setS('notedismiss', 'false')
				notify.notification(msg=msg)
				wiz.log("[Notifications] Complete")
		else: wiz.log("[Notifications] URL(%s): %s" % (NOTIFICATION, url))
	else: wiz.log("[Notifications] Turned Off")
else: wiz.log("[Notifications] Not Enabled")

wiz.log("[Installed Check] Started")
if INSTALLED == 'true':
	if not EXTRACT == '100':
		wiz.log("[Installed Check] Build was extracted %s/100 with [ERRORS: %s]" % (EXTRACT, EXTERROR))
		yes=DIALOG.yesno(ADDONTITLE, '%s was not installed correctly!' % BUILDNAME, 'Installed: %s / Error Count:%s' % (EXTRACT, EXTERROR), 'Would you like to try again?', nolabel='No Thanks!', yeslabel='Yes Please!')
		wiz.clearS('build')
		failed = True
		if yes: 
			xbmc.executebuiltin("PlayMedia(plugin://%s/?mode=install&name=%s&url=fresh)" % (ADDON_ID, urllib.quote_plus(BUILDNAME)))
			wiz.log("[Installed Check] Fresh Installed Re-activated")
		else: wiz.log("[Installed Check] Reinstall Ignored")
	elif SKIN in ['skin.confluence', 'skin.estuary']:
		wiz.log("[Installed Check] Incorrect skin: %s" % SKIN)
		gui = wiz.checkBuild(BUILDNAME, 'gui')
		failed = True
		if gui == 'http://':
			wiz.log("[Installed Check] Guifix was set to http://")
			DIALOG.ok(ADDONTITLE, "It looks like the skin settings was not applied to the build.", "Sadly no gui fix was attatched to the build", "You will need to reinstall the build and make sure to do a force close")
		elif wiz.workingURL(gui):
			yes=DIALOG.yesno(ADDONTITLE, '%s was not installed correctly!' % BUILDNAME, 'It looks like the skin settings was not applied to the build.', 'Would you like to apply the guiFix?', nolabel='No Thanks!', yeslabel='Yes Please!')
			if yes: xbmc.executebuiltin("PlayMedia(plugin://%s/?mode=install&name=%s&url=gui)" % (ADDON_ID, urllib.quote_plus(BUILDNAME))); wiz.log("[Installed Check] Guifix attempting to install")