Example #1
0
 def __getattr__(self, item):
     if item == "banner_url":
         return self.mirror + "/banners/" + self.BannerPath
     else:
         try:
             return self.data[item]
         except KeyError:
             raise error.TVDBAttributeError(
                 "Banner has no {0} attribute".format(item))
Example #2
0
 def __getattr__(self, item):
     try:
         return self.data[item]
     except KeyError:
         raise error.TVDBAttributeError(
             "Show has no attribute named {0}".format(item))
Example #3
0
 def __getattr__(self, item):
     try:
         return self.data[item]
     except KeyError:
         raise error.TVDBAttributeError(
             u"Episode has no attribute {0}".format(item))
Example #4
0
 def __getattr__(self, item):
     try:
         return self.data[item]
     except KeyError:
         raise error.TVDBAttributeError(
             u"Banner has no {0} attribute".format(item))