def __getitem__(self, episode_number): if episode_number not in self: raise tvdb_episodenotfound("Could not find episode {}".format( repr(episode_number))) else: return dict.__getitem__(self, episode_number)
def __getitem__(self, episode_number): if episode_number not in self: raise tvdb_episodenotfound("Could not find episode {}".format(repr(episode_number))) else: return dict.__getitem__(self, episode_number)
def airedOn(self, date): ret = self.search(date, 'firstaired') if len(ret) == 0: raise tvdb_episodenotfound( "Could not find any episodes that aired on {}".format(date)) return ret
def airedOn(self, date): ret = self.search(date, 'firstaired') if len(ret) == 0: raise tvdb_episodenotfound("Could not find any episodes that aired on {}".format(date)) return ret