forked from udacity/ud036_StarterCode
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathentertainment_center.py
83 lines (75 loc) · 3.18 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import media # import our media.py with Movie class in it
from fresh_tomatoes import open_movies_page # import the HTML creation code
# toy_story: new instance of Movie (Title, Storyline, Poster, Trailer)
toy_story = media.Movie(
('Toy Story'),
("A cowboy doll is profoundly threatened and jealous when a new spaceman "
"figure supplants him as top toy in a boy's room."
),
('https://images-na.ssl-images-amazon.com/images/M/MV5BMDU2ZWJlMjktMT'
'RhMy00ZTA5LWEzNDgtYmNmZTEwZTViZWJkXkEyXkFqcGdeQXVyNDQ2OTk4MzI@._V1_'
'SY1000_SX670_AL_.jpg'
),
('https://www.youtube.com/watch?v=KYz2wyBy3kc')
)
# avatar: new instance of Movie
avatar = media.Movie(
('Avatar'),
("A paraplegic marine dispatched to the moon Pandora on a unique mission "
"becomes torn between following his orders and protecting the world "
"he feels is his home."
),
('https://images-na.ssl-images-amazon.com/images/M/'
'MV5BMTYwOTEwNjAzMl5BMl5BanBnXkFtZTcwODc5MTUwMw@@._V1_.jpg'),
('https://www.youtube.com/watch?v=5PSNL1qE6VY')
)
# pretty_woman: new instance of Movie
pretty_woman = media.Movie(
('Pretty Woman'),
("A man in a legal but hurtful business needs an escort for some "
"social events, and hires a beautiful prostitute he meets... "
"only to fall in love."),
('https://images-na.ssl-images-amazon.com/images/M/MV5BNjk2ODQzNDYxNV'
'5BMl5BanBnXkFtZTgwMTcyNDg4NjE@._V1_SY1000_CR0,0,660,1000_AL_.jpg'),
('https://www.youtube.com/watch?v=Ng2hEIWVqqo')
)
# inside_out: new instance of Movie
inside_out = media.Movie(
('Inside Out'),
("After young Riley is uprooted from her Midwest life and moved to San "
"Francisco, her emotions - Joy, Fear, Anger, Disgust and Sadness - "
"conflict on how best to navigate a new city, house, and school."
),
('https://images-na.ssl-images-amazon.com/images/M/MV5BOTgxMDQwMDk0OF5BMl'
'5BanBnXkFtZTgwNjU5OTg2NDE@._V1_SY1000_CR0,0,674,1000_AL_.jpg'
),
('https://www.youtube.com/watch?v=seMwpP0yeu4')
)
# spotlight: new instance of Movie
spotlight = media.Movie(
('Spotlight'),
("The true story of how the Boston Globe uncovered the massive scandal "
"of child molestation and cover-up within the local Catholic "
"Archdiocese, shaking the entire Catholic Church to its core."
),
('https://images-na.ssl-images-amazon.com/images/M/MV5BMjIyOTM5OTIzNV'
'5BMl5BanBnXkFtZTgwMDkzODE2NjE@._V1_SY1000_CR0,0,676,1000_AL_.jpg'
),
('https://www.youtube.com/watch?v=EwdCIpbTN5g')
)
# the_martian: new instance of Movie
the_martian = media.Movie(
('The Martian'),
("An astronaut becomes stranded on Mars after his team assume him dead, "
"and must rely on his ingenuity to find a way to signal to Earth "
"that he is alive."
),
('https://images-na.ssl-images-amazon.com/images/M/MV5BMTc2MTQ3MDA1Nl5BMl'
'5BanBnXkFtZTgwODA3OTI4NjE@._V1_SY1000_CR0,0,675,1000_AL_.jpg'
),
('https://www.youtube.com/watch?v=ej3ioOneTy8')
)
# Create movies array
movies = [toy_story, avatar, pretty_woman, inside_out, spotlight, the_martian]
# Create and open movie page
open_movies_page(movies)