Пример #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'])
 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'])