示例#1
0
                wiz.log(
                    "[Auto Install Repo] Was unable to create a working url for repository. %s"
                    % workingrepo, xbmc.LOGERROR)
    else:
        wiz.LogNotify("[COLOR %s]Repo Install Error[/COLOR]" % COLOR1,
                      "[COLOR %s]Invalid addon.xml file![/COLOR]" % COLOR2)
        wiz.log("[Auto Install Repo] Unable to read the addon.xml file.",
                xbmc.LOGERROR)
elif not AUTOINSTALL == 'Yes':
    wiz.log("[Auto Install Repo] Not Enabled", xbmc.LOGNOTICE)
elif os.path.exists(os.path.join(ADDONS, REPOID)):
    wiz.log("[Auto Install Repo] Repository already installed")

wiz.log("[Auto Update Wizard] Started", xbmc.LOGNOTICE)
if AUTOUPDATE == 'Yes':
    wiz.wizardUpdate('startup')
else:
    wiz.log("[Auto Update Wizard] Not Enabled", xbmc.LOGNOTICE)

wiz.log("[Notifications] Started", xbmc.LOGNOTICE)
if ENABLE == 'Yes':
    if not NOTIFY == 'true':
        url = wiz.workingURL(NOTIFICATION)
        if url == True:
            link = wiz.openURL(NOTIFICATION).replace('\r',
                                                     '').replace('\t', '')
            id, msg = link.split('|||')
            if int(id) == int(NOTEID):
                if NOTEDISMISS == 'false':
                    notify.notification(msg=msg)
                else:
示例#2
0
			xbmc.executebuiltin('UpdateAddonRepos()')
			xbmc.executebuiltin('UpdateLocalAddons()')
			xbmc.sleep(1000)
			wiz.log("[Auto Install Repo] Successfully Installed")
		else: 
			wiz.LogNotify("Repo Install Error", "Invalid url for zip!")
			wiz.log("[Auto Install Repo] Was unable to create a working url for repository. %s" % workingrepo)
	else: 
		wiz.LogNotify("Repo Install Error", "Invalid addon.xml file!")
		wiz.log("[Auto Install Repo] Unable to read the addon.xml file.")
elif not AUTOINSTALL == 'Yes': wiz.log("[Auto Install Repo] Not Enabled")
elif os.path.exists(os.path.join(ADDONS, REPOID)): wiz.log("[Auto Install Repo] Repository already installed")

wiz.log("[Auto Update Wizard] Started")
if AUTOUPDATE == 'Yes':
	wiz.wizardUpdate('startup')
else: wiz.log("[Auto Update Wizard] Not Enabled")

wiz.log("[Notifications] Started")
if ENABLE == 'Yes':
	if not NOTIFY == 'true':
		url = wiz.workingURL(NOTIFICATION)
		if url == True:
			link  = wiz.openURL(NOTIFICATION).replace('\r','').replace('\t','')
			id, msg = link.split('|||')
			if int(id) == int(NOTEID):
				if NOTEDISMISS == 'false':
					notify.notification(msg=msg)
				else: wiz.log("[Notifications] id[%s] Dismissed" % int(id))
			elif int(id) > int(NOTEID):
				wiz.log("[Notifications] id: %s" % str(int(id)))