def __init__(self): self.urlHandler = "http://www.walla.co.il" log(__version__, "[%s] subtitleEngine init" % __scriptname__) self.baseSite = [ 'torecUrl', 'bsplayerUrl', 'subcenterUrl', 'opensubtitlesUrl', 'ktuvitUrl' ] self.userAttar = {} self.siteCheck = {}
def checkLogins(self, notify_success=False): if __addon__.getSetting('debug') == 'true': log(__scriptname__, "checkLogins settings attributes ", "DEBUG") if __addon__.getSetting("anonymousSearch") == 'true': log( __scriptname__, "%s Anonymouse Site Search Engine %s " % (__version__, str(__addon__.getSetting('anonymousSearch'))), "NOTICE") for i in range(len(self.baseSite)): if __addon__.getSetting(self.baseSite[i] + 'anon') == "true": if __addon__.getSetting('debug') == 'true': log( __scriptname__, " %s Anonymouse login" % (self.baseSite[i] + 'anon'), "NOTICE") self.siteCheck[self.baseSite[i]] = { 'username': '******', 'password': '******' } elif __addon__.getSetting("globalSearch") == 'true': log( __scriptname__, "%s Global Site Search Engine %s " % (__version__, str(__addon__.getSetting('globalSearch'))), "NOTICE") for i in range(len(self.baseSite)): self.siteCheck[self.baseSite[i]] = { 'username': __addon__.getSetting("globalUsername"), 'password': __addon__.getSetting("globalPassword") } elif __addon__.getSetting("specificSiteSearch") == 'true': log( __scriptname__, "%s Specific Site Search Engine %s " % (__version__, str(__addon__.getSetting('specificSiteSearch'))), "NOTICE") for i in range(len(self.baseSite)): if __addon__.getSetting('debug') == 'true': log( __scriptname__, "[ %s ] site To status : [ %s ] " % (self.baseSite[i], __addon__.getSetting(self.baseSite[i])), "DEBUG") if __addon__.getSetting(self.baseSite[i]) == 'true': if __addon__.getSetting('debug') == 'true': log( __scriptname__, "[%s] - user:pass [%s]:[%s] " % (self.baseSite[i], __addon__.getSetting(self.baseSite[i] + 'User'), __addon__.getSetting(baseSite[i] + 'Pass')), "NOTICE") self.siteCheck[self.baseSite[i]] = { 'username': __addon__.getSetting(self.baseSite[i] + 'User'), 'password': __addon__.getSetting(self.baseSite[i] + 'Pass') } log(__scriptname__, " %s Specific Site login" % self.baseSite[i], "NOTICE") #log(__scriptname__,"site To Check : [ %s ] " % self.siteCheck, "NOTICE" ) notify(__scriptname__, __language__, 32001) #self.openSelfWindowLoginsCheck() else: self.openSelfDialogUnchacked() log(__scriptname__, "site To Check : [ %s ] " % self.siteCheck, "NOTICE")
def __init__(self): log("[script.renegadestv] Scheduling notifications")
def openSelfWindowLoginsCheck(self): log(__scriptname__, "site To Check : [ %s ] " % self.siteCheck, "NOTICE")
def search(msName): log(SCRIPTNAME," Move/Series Name %s " % msName , "NOTICE")
sys.path.append(RESOURCE) from superSubtitleEngine import subtitleEngine, superSearchEngine from subtitleUtils import log,notify, get_params #from superSearchEngine import searchEngine, log def search(msName): log(SCRIPTNAME," Move/Series Name %s " % msName , "NOTICE") params = get_params() #xbmc.log("Params %s" % params['action'], level=xbmc.LOGDEBUG) log(SCRIPTNAME,"[%s] params" % params['action']) if params['action'] == 'search': log(SCRIPTNAME, "Version %s"%VERSION,"NOTICE" ) log(SCRIPTNAME, "Params [ %s ]" %params['action'],"NOTICE") movieSeriesHash = {} if xbmc.Player().isPlaying(): log( __name__, "action '%s' called" % params['action'],"NOTICE") movieSeriesHash = {} movieSeriesHash['temp'] = False movieSeriesHash['rar'] = False movieSeriesHash['mansearch'] = False movieSeriesHash['year'] = xbmc.getInfoLabel("VideoPlayer.Year") # Year movieSeriesHash['season'] = str(xbmc.getInfoLabel("VideoPlayer.Season")) # Season movieSeriesHash['episode'] = str(xbmc.getInfoLabel("VideoPlayer.Episode")) # Episode