def getTVShowIndicators(refresh=False): try: if trakt.getTraktIndicatorsInfo() == True: raise Exception() indicators = playcountMeta return indicators except: pass try: if trakt.getTraktIndicatorsInfo() == False: raise Exception() if refresh == False: timeout = 720 elif trakt.getWatchedActivity() < trakt.timeoutsyncTVShows(): timeout = 720 else: timeout = 0 indicators = trakt.cachesyncTVShows(timeout=timeout) return indicators except: pass
def getMovieIndicators(refresh=False): try: if trakt.getTraktIndicatorsInfo() == True: raise Exception() indicators = playcountMeta return indicators except: pass try: if trakt.getTraktIndicatorsInfo() == False: raise Exception() print ("TRAKT MOVIES") if refresh == False: timeout = 720 elif int(trakt.getWatchedActivity()) < int(trakt.timeoutsyncMovies()): timeout = 720 else: timeout = 0 print ("TRAKT TIMEOUT", timeout) indicators = trakt.cachesyncMovies(timeout=timeout) return indicators except: pass