Beispiel #1
0
            checkUpdate()
        elif BUILDCHECK <= str(TODAY):
            wiz.log("[Build Check] Build Installed: Checking Updates",
                    xbmc.LOGNOTICE)
            wiz.setS('lastbuildcheck', str(NEXTCHECK))
            checkUpdate()
        else:
            wiz.log(
                "[Build Check] Build Installed: Next check isnt until: %s / TODAY is: %s"
                % (BUILDCHECK, str(TODAY)), xbmc.LOGNOTICE)

wiz.log("[Trakt Data] Started", xbmc.LOGNOTICE)
if KEEPTRAKT == 'true':
    if TRAKTSAVE <= str(TODAY):
        wiz.log("[Trakt Data] Saving all Data", xbmc.LOGNOTICE)
        traktit.autoUpdate('all')
        wiz.setS('traktlastsave', str(THREEDAYS))
    else:
        wiz.log(
            "[Trakt Data] Next Auto Save isnt until: %s / TODAY is: %s" %
            (TRAKTSAVE, str(TODAY)), xbmc.LOGNOTICE)
else:
    wiz.log("[Trakt Data] Not Enabled", xbmc.LOGNOTICE)

wiz.log("[Real Debrid Data] Started", xbmc.LOGNOTICE)
if KEEPREAL == 'true':
    if REALSAVE <= str(TODAY):
        wiz.log("[Real Debrid Data] Saving all Data", xbmc.LOGNOTICE)
        debridit.autoUpdate('all')
        wiz.setS('debridlastsave', str(THREEDAYS))
    else:
Beispiel #2
0
			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:
		traktit.autoUpdate('all')
		wiz.setS('traktlastsave', str(THREEDAYS))

if KEEPREAL == 'true':
	if str(TODAY) >= REALSAVE:
		debridit.autoUpdate('all')
		wiz.setS('debridlastsave', str(THREEDAYS))