forked from udacity/ud036_StarterCode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentertainment_center.py
61 lines (50 loc) · 1.74 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
import media
import fresh_tomatoes
# Khan Kluay movie: movie title, poster image, movie trailer
kluay = media.Movie(
"Khan Kluay",
"https://upload.wikimedia.org/wikipedia/en/7/77/Khankluay.jpg",
"https://www.youtube.com/watch?v=DsmWluXpLQw"
)
# Khan Kluay 2 movie: movie title, poster image, movie trailer
kluay2 = media.Movie(
"Khan Kluay 2",
"http://2.bp.blogspot.com/-bR_dJ4QJgOM/VDE_RLm56UI/AAAAAAAABNU/w0mbiGsr56w/s1600/khan%2Bkluay%2B2%2Bposter.jpg",
"https://www.youtube.com/watch?v=crZ8xm0msH4"
)
# Toy Story movie: movie title, poster image, movie trailer
toy_story = media.Movie(
"Toy Story",
"https://upload.wikimedia.org/wikipedia/en/1/13/Toy_Story.jpg",
"https://www.youtube.com/watch?v=KYz2wyBy3kc"
)
# Avatar movie: movie title, poster image, movie trailer
avatar = media.Movie(
"Avatar",
"https://upload.wikimedia.org/wikipedia/en/b/b0/Avatar-Teaser-Poster.jpg",
"https://www.youtube.com/watch?v=d1_JBMrrYw8"
)
# Despicable Me movie: movie title, poster image, movie trailer
despicable = media.Movie(
"Despicable Me",
"https://upload.wikimedia.org/wikipedia/en/d/db/Despicable_Me_Poster.jpg",
"https://www.youtube.com/watch?v=TZkAcKCFIVo"
)
# Ice Age movie: movie title, poster image, movie trailer
ice_age = media.Movie(
"Ice Age",
"https://upload.wikimedia.org/wikipedia/en/3/3c/Ice_Age_%282002_film%29_poster.jpg",
"https://www.youtube.com/watch?v=wjdqn9r4thg"
)
if __name__ == '__main__':
# Create a list of the movies that will be passed to the movie webpage
movies = [
kluay,
kluay2,
toy_story,
avatar,
despicable,
ice_age
]
# Open the fresh tomatoes movie webpage
fresh_tomatoes.open_movies_page(movies)