def __init__(self, title, rating, duration, cast, storyline, poster_image, trailer_url): Video.__init__(self, title, duration, cast) # Parent Constructor call self.rating = rating # The movie rating self.storyline = storyline # What the movie is about self.trailer_youtube_url = trailer_url # The YouTube URL of the movie. self.poster_image_url = poster_image # An image of the movie poster
def __init__(self, filename, filenameFormat, extractor, n=2): Video.__init__(self, filename, n) self.filename = filename self.format = filenameFormat self.extractor = extractor self.currentIndex = 0