forked from udacity/ud036_StarterCode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedia.py
24 lines (21 loc) · 779 Bytes
/
media.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- coding: utf-8 -*-
from video import Video
class Movies(Video):
'''Main class as template to create new movies'''
if __name__ == "__main__":
print("This shouldn´t be run as main program "
"please use the entertainment_center.py file")
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