当前位置: 首页>>代码示例>>Python>>正文


Python Video.__init__方法代码示例

本文整理汇总了Python中video.Video.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Video.__init__方法的具体用法?Python Video.__init__怎么用?Python Video.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在video.Video的用法示例。


在下文中一共展示了Video.__init__方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from video import Video [as 别名]
# 或者: from video.Video import __init__ [as 别名]
 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'])
开发者ID:arizonatribe,项目名称:udacity-nanodegree-proj1,代码行数:9,代码来源:tv.py

示例2: __init__

# 需要导入模块: from video import Video [as 别名]
# 或者: from video.Video import __init__ [as 别名]
 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
开发者ID:cranticumar,项目名称:IPND,代码行数:10,代码来源:tv_series.py

示例3: __init__

# 需要导入模块: from video import Video [as 别名]
# 或者: from video.Video import __init__ [as 别名]
 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
开发者ID:kochbeck,项目名称:videocleaner,代码行数:10,代码来源:movie.py

示例4: __init__

# 需要导入模块: from video import Video [as 别名]
# 或者: from video.Video import __init__ [as 别名]
	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
开发者ID:drowland,项目名称:mtw,代码行数:11,代码来源:movie.py

示例5: __init__

# 需要导入模块: from video import Video [as 别名]
# 或者: from video.Video import __init__ [as 别名]
 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
开发者ID:vibhkat,项目名称:Project-Movie_Trailer_Website,代码行数:13,代码来源:media.py

示例6: __init__

# 需要导入模块: from video import Video [as 别名]
# 或者: from video.Video import __init__ [as 别名]
 def __init__(self, movie_title, poster_image, youtube_trailer):
     Video.__init__(self, movie_title, youtube_trailer)
     self.poster_image_url = poster_image
开发者ID:iliketomatoes,项目名称:movie_trailer,代码行数:5,代码来源:media.py

示例7: __init__

# 需要导入模块: from video import Video [as 别名]
# 或者: from video.Video import __init__ [as 别名]
 def __init__(self, title, url, duration, poster_image):
     Video.__init__(self, title, url, duration)
     self.poster_image = poster_image
开发者ID:rewake,项目名称:Udacity-FullStackND-MovieTrailerWebsite,代码行数:5,代码来源:movie.py

示例8: __init__

# 需要导入模块: from video import Video [as 别名]
# 或者: from video.Video import __init__ [as 别名]
	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
开发者ID:muratozgul,项目名称:udacityFSWD_moviesWS,代码行数:8,代码来源:movie.py

示例9: __init__

# 需要导入模块: from video import Video [as 别名]
# 或者: from video.Video import __init__ [as 别名]
 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'])
开发者ID:arizonatribe,项目名称:udacity-nanodegree-proj1,代码行数:8,代码来源:movie.py

示例10: __init__

# 需要导入模块: from video import Video [as 别名]
# 或者: from video.Video import __init__ [as 别名]
	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
开发者ID:vinnyA3,项目名称:movies-dx,代码行数:8,代码来源:movie.py

示例11: __init__

# 需要导入模块: from video import Video [as 别名]
# 或者: from video.Video import __init__ [as 别名]
 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
开发者ID:cranticumar,项目名称:IPND,代码行数:6,代码来源:movies.py


注:本文中的video.Video.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。