示例#1
0
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:
                    wiz.log("[Notifications] id[%s] Dismissed" % int(id),
                            xbmc.LOGNOTICE)
            elif int(id) > int(NOTEID):
                wiz.log("[Notifications] id: %s" % str(int(id)),
                        xbmc.LOGNOTICE)
                wiz.setS('noteid', str(int(id)))
                wiz.setS('notedismiss', 'false')
                notify.notification(msg=msg)
                wiz.log("[Notifications] Complete", xbmc.LOGNOTICE)
        else:
            wiz.log("[Notifications] URL(%s): %s" % (NOTIFICATION, url),
                    xbmc.LOGNOTICE)
    else:
        wiz.log("[Notifications] Turned Off", xbmc.LOGNOTICE)
示例#2
0
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)))
				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))