Ejemplo n.º 1
0
 def __init__(self,movie_title, duration,movie_storyline, poster_image_url,trailer_youtube_url):
     Video.__init__(self,movie_title,duration)
     #self.title=movie_title
     #self.duration = duration
     self.storyline = movie_storyline
     self.poster_image_url = poster_image_url
     self.trailer_youtube_url = trailer_youtube_url
    def __init__(self, movie_title, movie_description, movie_poster_image_url,
                 movie_trailer_youtube_url):
        """Initiate the movie instance.

        Args:
            movie_title: A string representing the movie title.
            movie_description: A string representing the movie description.
            movie_poster_image_url: A string representing the movie poster image url.
            movie_trailer_youtube_url: A string representing the movie trailer youtube url.

        Returns:
            Nothing.
        """
        Video.__init__(self, movie_title, movie_description,
                       movie_poster_image_url, movie_trailer_youtube_url)
        self.storyline = "movie_storyline"
        self.director = "Unknown"
        self.writers = "writers"
        self.stars = "stars"
        self.taglines = "taglines"
        self.genres = "genres"
        self.country = "country"
        self.language = "language"
        self.release_date = "release_date"
        self.runtime = "runtime"
    def __init__(self, title, description, rating, poster_image_url,
                 trailer_youtube_url, seasons):

        Video.__init__(self, title, description, rating, poster_image_url,
                       trailer_youtube_url)

        self.seasons = seasons
Ejemplo n.º 4
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.º 5
0
    def __init__(self, title, description, rating, poster_image_url,
                 trailer_youtube_url, duration):

        Video.__init__(self, title, description, rating, poster_image_url,
                       trailer_youtube_url)

        self.duration = duration
Ejemplo n.º 6
0
 def __init__(self, title, poster_img, dur, trailer, series_start, series_end,
              number_of_seasons, number_of_episodes, plot_summary):
     Video.__init__(self, title, poster_img, Tvseries.__name__, dur, trailer)
     self.start_date = series_start
     self.end_date = series_end
     self.seasons = number_of_seasons
     self.episodes = number_of_episodes
     self.plot = plot_summary
Ejemplo n.º 7
0
 def __init__(self, dirPath):
     Video.__init__(self, dirPath)                   # Call parent contructor
     self.curTrailerName = self._getTrailerFile()    # Current Trailer FileName
     self.imdbUrl        = None                      # URL to IMDB Info
     self.imdbInfo       = None                      # IMDB information
     self.imdbUpdate     = None                      # Date we last searched IMDB
     self.trailerUrl     = None                      # New TrailerAddict URL
     self._newInfoFound  = False                     # Set True when New Info is Found
Ejemplo n.º 8
0
	def __init__(self, title, story_line, poster_image_url,
				 trailer_youtube_url, rating, duration, release_year):

		# Call base class init with appropriate init variables
		Video.__init__(self, title, story_line, poster_image_url, trailer_youtube_url)
		
		self.rating = rating
		self.duration = duration
		self.release_year = release_year
Ejemplo n.º 9
0
 def __init__(self, movie_title, movie_storyline,
              poster_image,
              trailer_youtube,
              duration,
              ratings):
     Video.__init__(self, movie_title, duration)
     self.storyline = movie_storyline
     self.poster_image_url = poster_image
     self.trailer_youtube_url = trailer_youtube
     assert(ratings in self.VALID_RATINGS)
     self.ratings = ratings
Ejemplo n.º 10
0
 def __init__(self, title, duration, storyline, year, director, genre,
              rated, poster_image_url, trailer_youtube_url):
     """ Constructor method """
     Video.__init__(self, title, duration)
     self._storyline = storyline
     self._year = year
     self._director = director
     self._genre = genre
     self._rated = rated
     self._poster_image_url = poster_image_url
     self._trailer_youtube_url = trailer_youtube_url
Ejemplo n.º 11
0
    def __init__(self, title, VIEWER_RATING, length, comments, VALID_RATINGS,
                 movie_storyline, poster_image, trailer_youtube):
        # Pulling in the Video class here
        Video.__init__(self, title, VIEWER_RATING, length, comments)

        # Creating additional attributes here for
        # Movie class
        self.movie_rating = VALID_RATINGS
        self.storyline = movie_storyline
        self.poster_image_url = poster_image
        self.trailer_youtube_url = trailer_youtube
Ejemplo n.º 12
0
    def __init__(self, movie_title, duration, rating, movie_storyline,
                 poster_image_url, trailer_youtube_url):
        Video.__init__(self, movie_title, duration)
        #self.title=movie_title
        #self.duration = duration
        if (rating in self.VALID_RATINGS):
            self.rating = rating
        else:
            self.rating = "Unrated"

        self.storyline = movie_storyline
        self.poster_image_url = poster_image_url
        self.trailer_youtube_url = trailer_youtube_url
Ejemplo n.º 13
0
 def __init__(self, title, durration, storyline, poster_image_url,
              trailer_youtube_url):
     '''
     :param title: string
     :param durration: string
     :param storyline: string
     :param poster_image_url: string
     :param trailer_youtube_url: string
     '''
     Video.__init__(self, title, durration)
     self.storyline = storyline
     self.poster_image_url = poster_image_url
     self.trailer_youtube_url = trailer_youtube_url
Ejemplo n.º 14
0
 def __init__(self, show_name, duration, season, episode, tv_station):
     Video.__init__(self, show_name, duration)
     self.season = season
     self.episode = episode
     self.tv_station = tv_station
Ejemplo n.º 15
0
 def __init__(self, title, duration, image_url, trailer_url, info, year):
     Video.__init__(self, title, duration, image_url, trailer_url, info)
     self.year = year
     pass
Ejemplo n.º 16
0
 def __init__(self, title, duration, category, trailer_youtube, poster_image_url, movie_storyline):
     Video.__init__(self, title, duration, category, trailer_youtube, poster_image_url)
     self.movie_storyline = movie_storyline
Ejemplo n.º 17
0
 def __init__(self, title, poster, dur, trailer, rel_date, story_line):
     Video.__init__(self, title, poster, Movie.__name__, dur, trailer)
     self.release_date = rel_date
     self.storyline = story_line
Ejemplo n.º 18
0
 def __init__(self, title, duration, category, trailer_youtube_url, poster_image_url, season, episode, tv_station):
     Video.__init__(self, title, duration, category, trailer_youtube_url, poster_image_url)
     self.season = season
     self.episode = episode
     self.tv_station = tv_station
Ejemplo n.º 19
0
	def __init__(self, title, rating, description, poster_image, youtube_url):
		#Call the parent constructor
		Video.__init__(self, title, rating)
		self.description = description
		self.poster_image = poster_image
		self.youtube_url = youtube_url
Ejemplo n.º 20
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'])
Ejemplo n.º 21
0
 def __init__(self, movie_title, poster_image, youtube_trailer):
     Video.__init__(self, movie_title, youtube_trailer)
     self.poster_image_url = poster_image
 def __init__(self, title, url, duration, poster_image):
     Video.__init__(self, title, url, duration)
     self.poster_image = poster_image
Ejemplo n.º 23
0
	def __init__(self, title, duration, image_url, storyline, video_url):
		Video.__init__(self, title, duration, image_url)
		self.title = title
		self.storyline = storyline
		self.poster_image_url = image_url
		self.trailer_youtube_url = video_url
Ejemplo n.º 24
0
 def __init__(self, title, storyline, image, trailer):
     Video.__init__(self, title, storyline, image)
     self.trailer = trailer
Ejemplo n.º 25
0
 def __init__(self, movie_title, movie_storyline, poster_image, trailer_youtube):
     Video.__init__(self,movie_title)
     self.storyline = movie_storyline
     self.poster_image_url =poster_image
     self.trailer_youtube_url = trailer_youtube
Ejemplo n.º 26
0
 def __init__(self, title, storyline, image):
     Video.__init__(self, title, storyline, image)