Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 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