def isValid(cmd): if len(cmd) == 0: return False if 'plugin' in cmd and not utils.verifyPlugin(cmd): return False if 'RunScript' in cmd and not utils.verifyScript(cmd): return False return True
def isValid(cmd): if len(cmd) == 0: return False if 'plugin' in cmd: if not utils.verifyPlugin(cmd): return False if 'RunScript' in cmd: if not utils.verifyScript(cmd): return False return True
def getDefaultSearch(): file = os.path.join(xbmc.translatePath(ROOT), 'Search', FILENAME) faves = favourite.getFavourites(file) for fave in faves: label = fave[0] thumb = fave[1] cmd = fave[2] if 'plugin' in cmd: if utils.verifyPlugin(cmd): return fave if 'RunScript' in cmd: if utils.verifyScript(cmd): return fave return None
def isValid(cmd): if len(cmd) == 0: return False cmd = tidy(cmd) if SHOWUNAVAIL: return True if 'plugin' in cmd: if not utils.verifyPlugin(cmd): return False if 'RunScript' in cmd: cmd = re.sub('/&content_type=(.+?)"\)', '")', cmd) if not utils.verifyScript(cmd): return False return True
def isValid(cmd): if len(cmd) == 0: return False cmd = tidy(cmd) if 'PlayMedia' in cmd: return utils.verifyPlayMedia(cmd) if 'plugin' in cmd: if not utils.verifyPlugin(cmd): return False if 'RunScript' in cmd: cmd = re.sub('/&content_type=(.+?)"\)', '")', cmd) if not utils.verifyScript(cmd): return False return True
def isValid(cmd): if len(cmd) == 0: return False cmd = tidy(cmd) # if 'PlayMedia' in cmd: if cmd.startswith("PlayMedia"): return utils.verifyPlayMedia(cmd) # if 'RunScript' in cmd: if cmd.startswith("RunScript"): cmd = re.sub('/&content_type=(.+?)"\)', '")', cmd) if not utils.verifyScript(cmd): return False if "plugin" in cmd: if not utils.verifyPlugin(cmd): return False return True