forked from udacity/ud036_StarterCode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
entertainment_center.py
36 lines (29 loc) · 1.23 KB
/
entertainment_center.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
25
26
27
28
29
30
31
32
33
34
35
36
"""Stores information of movies and displays them on a website."""
import media
import fresh_tomatoes
def main():
"""Creates three Movie objects and initializes them"""
toy_story = media.Movie(
"Toy Story",
"A Story of a boy and his toys that come to life",
"https://upload.wikimedia.org/wikipedia/commons/0/0a/Toy_Story_logo.svg", # NOQA
"https://www.youtube.com/watch?v=KYz2wyBy3kc", "1996"
)
star_wars = media.Movie(
"Star Wars: The Force Awakens",
"A Story of a boy and his toys that come to life",
"https://upload.wikimedia.org/wikipedia/commons/2/20/Das_erwachen_der_macht_logo.svg", # NOQA
"https://www.youtube.com/watch?v=0IjOPqiyVik", "2015"
)
transformers = media.Movie(
"Transformers: The Last Knight",
"A Story of a boy and his toys that come to life",
"https://upload.wikimedia.org/wikipedia/commons/4/49/Transformers_5_El_%C3%9Altimo_caballero.png", # NOQA
"https://www.youtube.com/watch?v=R4nrFuJedyk", "2016"
)
# Store movies in array
movies = [toy_story, star_wars, transformers]
# Open website in browser
fresh_tomatoes.open_movies_page(movies)
if __name__ == '__main__':
main()