Exemplo n.º 1
0
                        '[Installed Check] Guifix url working but cancelled: %s'
                        % gui, xbmc.LOGNOTICE)
            else:
                DIALOG.ok(
                    ADDONTITLE,
                    "[COLOR %s]It looks like the skin settings was not applied to the build."
                    % COLOR2, "Sadly no gui fix was attatched to the build",
                    "You will need to reinstall the build and make sure to do a force close[/COLOR]"
                )
                wiz.log('[Installed Check] Guifix url not working: %s' % gui,
                        xbmc.LOGNOTICE)
    else:
        wiz.log('[Installed Check] Install seems to be completed correctly',
                xbmc.LOGNOTICE)
    if KEEPTRAKT == 'true':
        traktit.traktIt('restore', 'all')
        wiz.log('[Installed Check] Restoring Trakt Data', xbmc.LOGNOTICE)
    if KEEPREAL == 'true':
        debridit.debridIt('restore', 'all')
        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,
Exemplo n.º 2
0
	if not EXTRACT == '100':
		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!')
		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)))
				wiz.log("[Installed Check] Guifix was set to http://", xbmc.LOGNOTICE)
				DIALOG.ok(ADDONTITLE, "[COLOR %s]It looks like the skin settings was not applied to the build." % COLOR2, "Sadly no gui fix was attatched to the build", "You will need to reinstall the build and make sure to do a force close[/COLOR]")
			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='[B]No, Cancel[/B]', yeslabel='[B]Apply Fix[/B]')
				if yes: wiz.ebi("PlayMedia(plugin://%s/?mode=install&name=%s&url=gui)" % (ADDON_ID, urllib.quote_plus(BUILDNAME))); wiz.log("[Installed Check] Guifix attempting to install")
				else: wiz.log('[Installed Check] Guifix url working but cancelled: %s' % gui, xbmc.LOGNOTICE)
			else:
				DIALOG.ok(ADDONTITLE, "[COLOR %s]It looks like the skin settings was not applied to the build." % COLOR2, "Sadly no gui fix was attatched to the build", "You will need to reinstall the build and make sure to do a force close[/COLOR]")
				wiz.log('[Installed Check] Guifix url not working: %s' % gui, xbmc.LOGNOTICE)
	else:
		wiz.log('[Installed Check] Install seems to be completed correctly', xbmc.LOGNOTICE)
	if not wiz.getS('pvrclient') == "":
		wiz.toggleAddon(wiz.getS('pvrclient'), 1)
		wiz.ebi('StartPVRManager')
	wiz.addonUpdates('reset')
	if KEEPTRAKT == 'true': traktit.traktIt('restore', 'all'); wiz.log('[Installed Check] Restoring Trakt Data', xbmc.LOGNOTICE)
	if KEEPREAL  == 'true': debridit.debridIt('restore', 'all'); 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.firstRunSettings()
		xbmc.sleep(500)
		notify.firstRun()
		xbmc.sleep(500)
Exemplo n.º 4
0
		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")
			else: wiz.log('[Installed Check] Guifix 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('[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")