Example #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)
Example #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)
Example #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
Example #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