-
Notifications
You must be signed in to change notification settings - Fork 0
/
entertainment_center.py
57 lines (48 loc) · 2.11 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
import media
import fresh_tomatoes
# The Holiday: movie title, storyline, poster art, and YouTube trailer
the_holiday = media.Movie(
"The Holiday",
"Two women meet their dream man.",
"https://upload.wikimedia.org/wikipedia/en/6/60/Theholidayposter.jpg",
"https://www.youtube.com/watch?v=JGBl5FxOrUQ")
# Idiocracy: movie title, storyline, poster art, and YouTube trailer
idiocracy = media.Movie(
"Idiocracy",
"The world has gotten dumb, really dumb.",
"https://upload.wikimedia.org/wikipedia/en/6/6b/Idiocracy_movie_poster.jpg", # NOQA
"https://www.youtube.com/watch?v=ztSngdklb5g")
# Dirty Dancing: movie title, storyline, poster art, and YouTube trailer
dirty_dancing = media.Movie(
"Dirty Dancing",
"Girl meets inappropriate soul mate - grows up.",
"https://upload.wikimedia.org/wikipedia/en/0/00/Dirty_Dancing.jpg",
"https://www.youtube.com/watch?v=eIcmQNy9FsM")
# Pretty Woman: movie title, storyline, poster art, and YouTube trailer
pretty_woman = media.Movie(
"Pretty Woman",
"Guy meets girl from wrong side of town, love happens.",
"https://upload.wikimedia.org/wikipedia/en/b/b6/Pretty_woman_movie.jpg",
"https://www.youtube.com/watch?v=Ng2hEIWVqqo")
# Sixteen Candles: movie title, storyline, poster art, and YouTube trailer
sixteen_candles = media.Movie(
"Sixteen Candles",
"Awkward teenage romance of the 80's.",
"https://upload.wikimedia.org/wikipedia/en/3/34/Sixteen_Candles.jpg",
"https://www.youtube.com/watch?v=HGLtBJupFFM")
# American Pie: movie title, storyline, poster art, and YouTube trailer
american_pie = media.Movie(
"American Pie",
"Teen sex comedy featuring pie and flutes.",
"https://upload.wikimedia.org/wikipedia/en/c/c8/American_Pie1.jpg",
"https://www.youtube.com/watch?v=RnWpLaN84uM")
# create list of all movie objects
movies = [
the_holiday,
idiocracy,
dirty_dancing,
pretty_woman,
sixteen_candles,
american_pie]
# call function from fresh_tomatoes.py to create an html file for display
fresh_tomatoes.open_movies_page(movies)