本文整理汇总了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'])
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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'])
示例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
示例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