Ejemplo n.º 1
0
 def __init__(self, details):
     """Creates a new instance of a TvShow. Should be provided with media
         details in a given object, including some values specific to TV."""
     Video.__init__(self, details)
     self.seasons = details['seasons']
     self.network_url = details['network_url']
     self.rating = Video.get_rating(self, TvShow.VALID_RATINGS, details['rating'])
Ejemplo n.º 2
0
 def __init__(self, details):
     """Creates a new instance of a Movie. Should be provided with media
         details in a given object, including some values specific to Movies."""
     Video.__init__(self, details)
     self.year = details['year']
     self.rating = Video.get_rating(self, Movie.VALID_RATINGS, details['rating'])