def run(self): for anime in self.animes: try: metadata.refreshForAnime(anime.id) except: pass time.sleep(60) # Sleep for 60 seconds so we don't trigger flood protection and get a temporary ban return 0
def run(self): for anime in self.animes: try: metadata.refreshForAnime(anime.id) except: pass time.sleep( 60 ) # Sleep for 60 seconds so we don't trigger flood protection and get a temporary ban return 0
def GET(self, id): metadata.refreshForAnime(int(id)) raise web.seeother('/anime/%s' % id)