From 83b58d58a036c1b7c5e7e6ac8c8a1d56767c7a88 Mon Sep 17 00:00:00 2001 From: "Rahul Vishwakarma (RVK)" Date: Tue, 24 Oct 2017 23:37:22 +0530 Subject: [PATCH 1/5] Added media file containing various classes --- media.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 media.py diff --git a/media.py b/media.py new file mode 100644 index 000000000..674ca5487 --- /dev/null +++ b/media.py @@ -0,0 +1,35 @@ + +class Video(object): + VALID_RATINGS=["G", "PG", "PG-13", "R"] + + def __init__(self, title, duration, genre, poster_image, youtube_trailer): + self.title = title + self.duration = duration + self.genre = poster_image + self.youtube_trailer = youtube_trailer + +class Movie(Video): + + def __init__(self, title, duration, genre, poster_image, youtube_trailer, storyline, director, producer): + Video.__init__(self, title, duration, genre, poster_image, youtube_trailer) + self.storyline = storyline + self.director = director + self.producer = producer + +class MusicVideo(Video): + + def __init__(self, title, duration, genre, poster_image, youtube_trailer, artist, director, lable, peak_billboard_position): + Video.__init__(self, title, duration, genre, poster_image, youtube_trailer) + self.artist = artist + self.director = director + self.lable = lable + self.peak_billboard_position = peak_billboard_position + +class TVShows(Video): + + def __init__(self, title, duration, genre, poster_image, youtube_trailer, scenario, no_of_seasons, tv_station, created_by): + Video.__init__(self, title, duration, genre, poster_image, youtube_trailer) + self.scenario = scenario + self.no_of_seasons = no_of_seasons + self.tv_station = tv_station + self.created_by = created_by \ No newline at end of file From 183d08144f370b043e5b09add02a19bd403941fa Mon Sep 17 00:00:00 2001 From: "Rahul Vishwakarma (RVK)" Date: Tue, 24 Oct 2017 23:53:38 +0530 Subject: [PATCH 2/5] Added comments, documented classes and gave name to classes in media file --- media.py | 21 ++++++++++++++++----- media.pyc | Bin 0 -> 1904 bytes 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 media.pyc diff --git a/media.py b/media.py index 674ca5487..ba500c16d 100644 --- a/media.py +++ b/media.py @@ -1,6 +1,8 @@ - +#Base class class Video(object): + '''Base Class contains all the variables and function that is going to be same for its derived class''' #documentation of class VALID_RATINGS=["G", "PG", "PG-13", "R"] + __name__ = "Video" #defalut variable to name the class def __init__(self, title, duration, genre, poster_image, youtube_trailer): self.title = title @@ -8,27 +10,36 @@ def __init__(self, title, duration, genre, poster_image, youtube_trailer): self.genre = poster_image self.youtube_trailer = youtube_trailer +#Child class inheriting Video class Movie(Video): + '''Movie class contains details of movie and inherits Video class''' + __name__ = "Movie" def __init__(self, title, duration, genre, poster_image, youtube_trailer, storyline, director, producer): - Video.__init__(self, title, duration, genre, poster_image, youtube_trailer) + Video.__init__(self, title, duration, genre, poster_image, youtube_trailer) #Calling Base class constructor self.storyline = storyline self.director = director self.producer = producer +#Child class inheriting Video class MusicVideo(Video): - + '''MusicVideo class contains information of music video and inherits Video class''' + __name__ = "MusicVideo" + def __init__(self, title, duration, genre, poster_image, youtube_trailer, artist, director, lable, peak_billboard_position): - Video.__init__(self, title, duration, genre, poster_image, youtube_trailer) + Video.__init__(self, title, duration, genre, poster_image, youtube_trailer) #Calling Base class constructor self.artist = artist self.director = director self.lable = lable self.peak_billboard_position = peak_billboard_position +#Child class inheriting Video class TVShows(Video): + '''TVShows class have information of TV Series and inherits Video class''' + __name__ = "TVShows" def __init__(self, title, duration, genre, poster_image, youtube_trailer, scenario, no_of_seasons, tv_station, created_by): - Video.__init__(self, title, duration, genre, poster_image, youtube_trailer) + Video.__init__(self, title, duration, genre, poster_image, youtube_trailer) #Calling Base class constructor self.scenario = scenario self.no_of_seasons = no_of_seasons self.tv_station = tv_station diff --git a/media.pyc b/media.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0f005eb357ec8b85fb7df88754145287985bbe3a GIT binary patch literal 1904 zcmcgsOK%e~5ccNPrj%EK@H{NyvKK&zBM4DiDJr5>q=Q`1@vD|9O4x`?nw4sW|=B>HD6B|4bqi!U(Y&i7XN) zLL3XRy+f0lFcDkp6KhRmjj^>kvDQV_8e3;3)`rMt#YWPm0HH}@%Vx$+5@?X+0}cO@ z1Vu+ck`#a=XXLXX_8MY`l&09BBwO&j(-3kanZd!2@SwekmvZfWoVp@tTliS#c^vjl ze56aOd$}P?k;S`%A`R9Rw4_69eH>ieGqEl9O=*M4LPYMmp+<7O>yhtz_xY>WY?hLy zB5jetz@8-8IHHaBI0$N|T_$#*3bi7X}C=Sk~3A55w2q24nR2qC>nc*Hq0nbj}) zLk_BxEo@MVk;JNq+Wb%8^mI$14~067RR+g1q++11f zZb)pN24?L{bcPZLvb7bpqJ^kc!q-0^7 z`XwQg5<}Q0f#o0UNM1mW@)iUxBo|0baXJeTFvL!_is(s2OdZFrL4fUxfkqMCpy7cw zK@6{}18>u_jd&THaTH^M^D<5T66aBy0dM{eIBJ*+qXHaLT?Xp|W5vahqm{#bTIn18 zMfGf+_na;>MP+Z%J_!=M0RFq!!tmdN)**2o2M=l8!|j-Zc9dL|g*$W_S&vx&gqvF% z`|hj1QmOxE3Q)#AH3hw)j=Q{Y%Izv|w0DK)S_((Xhw9}*a%pKay`!o(ybKc$=!68m z@)5*i66Z1TjMo2^39#@KeyV<0t6n Date: Wed, 25 Oct 2017 10:27:58 +0530 Subject: [PATCH 3/5] Added entertainment_center file with few instances of Movie class. Corrected some errors in media file . --- entertainment_center.py | 25 +++++++++++++++++++++++++ media.py | 5 +++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 entertainment_center.py diff --git a/entertainment_center.py b/entertainment_center.py new file mode 100644 index 000000000..35208afbc --- /dev/null +++ b/entertainment_center.py @@ -0,0 +1,25 @@ +import media +import urllib +import fresh_tomatoes + +boyka_undisputed=media.Movie("Boyka: Undisputed", "190 Minute", "Martial arts film", "https://images-na.ssl-images-amazon.com/images/M/MV5BNGQ4YjhmNzUtZTI1MC00OTQ3LTk4MTItYWJhNDdmNGZjOWU2XkEyXkFqcGdeQXVyMTA2NjI0MQ@@._V1_UY268_CR0,0,182,268_AL_.jpg","https://www.youtube.com/watch?v=KQtB3-NMfnU", "A fighter tries to save wife of another fighter who he accidently kill in a fight.", "Todor Chapkanov", "Boaz Davidson") + +avatar=media.Movie("Avatar", "162 Minute", "Fantasy/Science fiction film", "https://upload.wikimedia.org/wikipedia/en/b/b0/Avatar-Teaser-Poster.jpg", "https://www.youtube.com/watch?v=5PSNL1qE6VY", "A Marine on an alien planet", "James Cameron", "James Cameron") + +#interstellar=media.Movie("Interstellar", "A EX-Nasa pilot went to search and colonize life in other planet.", "https://upload.wikimedia.org/wikipedia/en/b/bc/Interstellar_film_poster.jpg", "https://www.youtube.com/watch?v=2LqzF5WauAw") + +#the_big_sick=media.Movie("The Big Sick", "Love Story of Pakistani comedian in American", "https://upload.wikimedia.org/wikipedia/en/6/69/The_Big_Sick.jpg", "https://www.youtube.com/watch?v=PJmpSMRQhhs") + +#inception=media.Movie("Inception", "Creating an idea in other person mind by the help of dream.", "https://upload.wikimedia.org/wikipedia/en/2/2e/Inception_%282010%29_theatrical_poster.jpg", "https://www.youtube.com/watch?v=d3A3-zSOBT4") + +#shutter_island= media.Movie("Shutter Island", "A us marshal stuck in an Asylum in an island.", "https://upload.wikimedia.org/wikipedia/en/7/76/Shutterislandposter.jpg", "https://www.youtube.com/watch?v=YDGldPitxic") + +#the_accountant=media.Movie("The Accountant", "Story of autism guy as a clever accountant and army skill", "https://upload.wikimedia.org/wikipedia/en/thumb/e/e4/The_Accountant_%282016_film%29.png/220px-The_Accountant_%282016_film%29.png", "https://www.youtube.com/watch?v=DBfsgcswlYQ") + +#lucy=media.Movie("Lucy", "A woman's strength and thinking power grow exponentially after the effects of a performance-enhancing drug set in.", "https://upload.wikimedia.org/wikipedia/en/thumb/1/14/Lucy_%282014_film%29_poster.jpg/220px-Lucy_%282014_film%29_poster.jpg", "https://www.youtube.com/watch?v=MVt32qoyhi0") + +#the_sixth_sense=media.Movie("The Sixth Sense", "A child psychologist, starts treating a young boy who acts as a medium of communication between Crowe and a slew of unhappy spirits.", "https://upload.wikimedia.org/wikipedia/en/6/66/The_sixth_sense.jpg", "https://www.youtube.com/watch?v=VG9AGf66tXM") + +movies=[boyka_undisputed, avatar]#, interstellar, the_big_sick, inception, shutter_island, the_accountant, lucy, the_sixth_sense] + +fresh_tomatoes.open_movies_page(movies) \ No newline at end of file diff --git a/media.py b/media.py index ba500c16d..8bd45a6f0 100644 --- a/media.py +++ b/media.py @@ -7,8 +7,9 @@ class Video(object): def __init__(self, title, duration, genre, poster_image, youtube_trailer): self.title = title self.duration = duration - self.genre = poster_image - self.youtube_trailer = youtube_trailer + self.genre = genre + self.poster_image_url = poster_image + self.trailer_youtube_url = youtube_trailer #Child class inheriting Video class Movie(Video): From 7922ac64cf5bc333c397284bb63c7cab5b80a421 Mon Sep 17 00:00:00 2001 From: "Rahul Vishwakarma (RVK)" Date: Wed, 25 Oct 2017 10:55:30 +0530 Subject: [PATCH 4/5] Added all the instances of Movie class, next to add instances of Music Video and Tv Shows. --- entertainment_center.py | 16 +++++++++------- media.pyc | Bin 1904 -> 0 bytes 2 files changed, 9 insertions(+), 7 deletions(-) delete mode 100644 media.pyc diff --git a/entertainment_center.py b/entertainment_center.py index 35208afbc..91d79ebfa 100644 --- a/entertainment_center.py +++ b/entertainment_center.py @@ -2,17 +2,19 @@ import urllib import fresh_tomatoes -boyka_undisputed=media.Movie("Boyka: Undisputed", "190 Minute", "Martial arts film", "https://images-na.ssl-images-amazon.com/images/M/MV5BNGQ4YjhmNzUtZTI1MC00OTQ3LTk4MTItYWJhNDdmNGZjOWU2XkEyXkFqcGdeQXVyMTA2NjI0MQ@@._V1_UY268_CR0,0,182,268_AL_.jpg","https://www.youtube.com/watch?v=KQtB3-NMfnU", "A fighter tries to save wife of another fighter who he accidently kill in a fight.", "Todor Chapkanov", "Boaz Davidson") +#Movie class objects with movie details -avatar=media.Movie("Avatar", "162 Minute", "Fantasy/Science fiction film", "https://upload.wikimedia.org/wikipedia/en/b/b0/Avatar-Teaser-Poster.jpg", "https://www.youtube.com/watch?v=5PSNL1qE6VY", "A Marine on an alien planet", "James Cameron", "James Cameron") +boyka_undisputed=media.Movie("Boyka: Undisputed", "88 Minutes", "Martial Arts Film", "https://images-na.ssl-images-amazon.com/images/M/MV5BNGQ4YjhmNzUtZTI1MC00OTQ3LTk4MTItYWJhNDdmNGZjOWU2XkEyXkFqcGdeQXVyMTA2NjI0MQ@@._V1_UY268_CR0,0,182,268_AL_.jpg","https://www.youtube.com/watch?v=KQtB3-NMfnU", "A fighter tries to save wife of another fighter who he accidently kill in a fight.", "Todor Chapkanov", "Boaz Davidson") -#interstellar=media.Movie("Interstellar", "A EX-Nasa pilot went to search and colonize life in other planet.", "https://upload.wikimedia.org/wikipedia/en/b/bc/Interstellar_film_poster.jpg", "https://www.youtube.com/watch?v=2LqzF5WauAw") +avatar=media.Movie("Avatar", "161 Minutes", "Fantasy/Science Fiction Film", "https://upload.wikimedia.org/wikipedia/en/b/b0/Avatar-Teaser-Poster.jpg", "https://www.youtube.com/watch?v=5PSNL1qE6VY", "A Marine on an alien planet", "James Cameron", "James Cameron") -#the_big_sick=media.Movie("The Big Sick", "Love Story of Pakistani comedian in American", "https://upload.wikimedia.org/wikipedia/en/6/69/The_Big_Sick.jpg", "https://www.youtube.com/watch?v=PJmpSMRQhhs") +interstellar=media.Movie("Interstellar", "169 Minutes", "Epic Science Fiction Film", "https://upload.wikimedia.org/wikipedia/en/b/bc/Interstellar_film_poster.jpg", "https://www.youtube.com/watch?v=2LqzF5WauAw", "A EX-Nasa pilot went to search and colonize life in other planet.", "Christopher Nolan", "Emma Thomas") -#inception=media.Movie("Inception", "Creating an idea in other person mind by the help of dream.", "https://upload.wikimedia.org/wikipedia/en/2/2e/Inception_%282010%29_theatrical_poster.jpg", "https://www.youtube.com/watch?v=d3A3-zSOBT4") +the_big_sick=media.Movie("The Big Sick", "117 Minutes", "Romantic Comedy Film ", "https://upload.wikimedia.org/wikipedia/en/6/69/The_Big_Sick.jpg", "https://www.youtube.com/watch?v=PJmpSMRQhhs", "Love Story of Pakistani comedian in American", "Michael Showalter", "Judd Apatow") -#shutter_island= media.Movie("Shutter Island", "A us marshal stuck in an Asylum in an island.", "https://upload.wikimedia.org/wikipedia/en/7/76/Shutterislandposter.jpg", "https://www.youtube.com/watch?v=YDGldPitxic") +inception=media.Movie("Inception", "148 Minutes", "Science Fiction Film", "https://upload.wikimedia.org/wikipedia/en/2/2e/Inception_%282010%29_theatrical_poster.jpg", "https://www.youtube.com/watch?v=d3A3-zSOBT4", "Creating an idea in other person mind by the help of dream.", "Christopher Nolan", "Emma Thomas") + +shutter_island= media.Movie("Shutter Island", "138 Minutes", " Neo-Noir Psychological Thriller", "https://upload.wikimedia.org/wikipedia/en/7/76/Shutterislandposter.jpg", "https://www.youtube.com/watch?v=YDGldPitxic", "A us marshal stuck in an Asylum in an island.", "Martin Scorsese", "Mike Medavoy") #the_accountant=media.Movie("The Accountant", "Story of autism guy as a clever accountant and army skill", "https://upload.wikimedia.org/wikipedia/en/thumb/e/e4/The_Accountant_%282016_film%29.png/220px-The_Accountant_%282016_film%29.png", "https://www.youtube.com/watch?v=DBfsgcswlYQ") @@ -20,6 +22,6 @@ #the_sixth_sense=media.Movie("The Sixth Sense", "A child psychologist, starts treating a young boy who acts as a medium of communication between Crowe and a slew of unhappy spirits.", "https://upload.wikimedia.org/wikipedia/en/6/66/The_sixth_sense.jpg", "https://www.youtube.com/watch?v=VG9AGf66tXM") -movies=[boyka_undisputed, avatar]#, interstellar, the_big_sick, inception, shutter_island, the_accountant, lucy, the_sixth_sense] +movies=[boyka_undisputed, avatar, interstellar, the_big_sick, inception, shutter_island]#, the_accountant, lucy, the_sixth_sense] fresh_tomatoes.open_movies_page(movies) \ No newline at end of file diff --git a/media.pyc b/media.pyc deleted file mode 100644 index 0f005eb357ec8b85fb7df88754145287985bbe3a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1904 zcmcgsOK%e~5ccNPrj%EK@H{NyvKK&zBM4DiDJr5>q=Q`1@vD|9O4x`?nw4sW|=B>HD6B|4bqi!U(Y&i7XN) zLL3XRy+f0lFcDkp6KhRmjj^>kvDQV_8e3;3)`rMt#YWPm0HH}@%Vx$+5@?X+0}cO@ z1Vu+ck`#a=XXLXX_8MY`l&09BBwO&j(-3kanZd!2@SwekmvZfWoVp@tTliS#c^vjl ze56aOd$}P?k;S`%A`R9Rw4_69eH>ieGqEl9O=*M4LPYMmp+<7O>yhtz_xY>WY?hLy zB5jetz@8-8IHHaBI0$N|T_$#*3bi7X}C=Sk~3A55w2q24nR2qC>nc*Hq0nbj}) zLk_BxEo@MVk;JNq+Wb%8^mI$14~067RR+g1q++11f zZb)pN24?L{bcPZLvb7bpqJ^kc!q-0^7 z`XwQg5<}Q0f#o0UNM1mW@)iUxBo|0baXJeTFvL!_is(s2OdZFrL4fUxfkqMCpy7cw zK@6{}18>u_jd&THaTH^M^D<5T66aBy0dM{eIBJ*+qXHaLT?Xp|W5vahqm{#bTIn18 zMfGf+_na;>MP+Z%J_!=M0RFq!!tmdN)**2o2M=l8!|j-Zc9dL|g*$W_S&vx&gqvF% z`|hj1QmOxE3Q)#AH3hw)j=Q{Y%Izv|w0DK)S_((Xhw9}*a%pKay`!o(ybKc$=!68m z@)5*i66Z1TjMo2^39#@KeyV<0t6n Date: Wed, 25 Oct 2017 11:48:02 +0530 Subject: [PATCH 5/5] Created all the instances of all class, next step to undrestand fresh_tomatoes file. --- entertainment_center.py | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/entertainment_center.py b/entertainment_center.py index 91d79ebfa..2646faf5d 100644 --- a/entertainment_center.py +++ b/entertainment_center.py @@ -4,24 +4,37 @@ #Movie class objects with movie details -boyka_undisputed=media.Movie("Boyka: Undisputed", "88 Minutes", "Martial Arts Film", "https://images-na.ssl-images-amazon.com/images/M/MV5BNGQ4YjhmNzUtZTI1MC00OTQ3LTk4MTItYWJhNDdmNGZjOWU2XkEyXkFqcGdeQXVyMTA2NjI0MQ@@._V1_UY268_CR0,0,182,268_AL_.jpg","https://www.youtube.com/watch?v=KQtB3-NMfnU", "A fighter tries to save wife of another fighter who he accidently kill in a fight.", "Todor Chapkanov", "Boaz Davidson") +boyka_undisputed = media.Movie("Boyka: Undisputed", "88 Minutes", "Martial Arts Film", "https://images-na.ssl-images-amazon.com/images/M/MV5BNGQ4YjhmNzUtZTI1MC00OTQ3LTk4MTItYWJhNDdmNGZjOWU2XkEyXkFqcGdeQXVyMTA2NjI0MQ@@._V1_UY268_CR0,0,182,268_AL_.jpg","https://www.youtube.com/watch?v=KQtB3-NMfnU", "A fighter tries to save wife of another fighter who he accidently kill in a fight.", "Todor Chapkanov", "Boaz Davidson") -avatar=media.Movie("Avatar", "161 Minutes", "Fantasy/Science Fiction Film", "https://upload.wikimedia.org/wikipedia/en/b/b0/Avatar-Teaser-Poster.jpg", "https://www.youtube.com/watch?v=5PSNL1qE6VY", "A Marine on an alien planet", "James Cameron", "James Cameron") +avatar = media.Movie("Avatar", "161 Minutes", "Fantasy/Science Fiction Film", "https://upload.wikimedia.org/wikipedia/en/b/b0/Avatar-Teaser-Poster.jpg", "https://www.youtube.com/watch?v=5PSNL1qE6VY", "A Marine on an alien planet", "James Cameron", "James Cameron") -interstellar=media.Movie("Interstellar", "169 Minutes", "Epic Science Fiction Film", "https://upload.wikimedia.org/wikipedia/en/b/bc/Interstellar_film_poster.jpg", "https://www.youtube.com/watch?v=2LqzF5WauAw", "A EX-Nasa pilot went to search and colonize life in other planet.", "Christopher Nolan", "Emma Thomas") +interstellar = media.Movie("Interstellar", "169 Minutes", "Epic Science Fiction Film", "https://upload.wikimedia.org/wikipedia/en/b/bc/Interstellar_film_poster.jpg", "https://www.youtube.com/watch?v=2LqzF5WauAw", "A EX-Nasa pilot went to search and colonize life in other planet.", "Christopher Nolan", "Emma Thomas") -the_big_sick=media.Movie("The Big Sick", "117 Minutes", "Romantic Comedy Film ", "https://upload.wikimedia.org/wikipedia/en/6/69/The_Big_Sick.jpg", "https://www.youtube.com/watch?v=PJmpSMRQhhs", "Love Story of Pakistani comedian in American", "Michael Showalter", "Judd Apatow") +the_big_sick = media.Movie("The Big Sick", "117 Minutes", "Romantic Comedy Film ", "https://upload.wikimedia.org/wikipedia/en/6/69/The_Big_Sick.jpg", "https://www.youtube.com/watch?v=PJmpSMRQhhs", "Love Story of Pakistani comedian in American", "Michael Showalter", "Judd Apatow") -inception=media.Movie("Inception", "148 Minutes", "Science Fiction Film", "https://upload.wikimedia.org/wikipedia/en/2/2e/Inception_%282010%29_theatrical_poster.jpg", "https://www.youtube.com/watch?v=d3A3-zSOBT4", "Creating an idea in other person mind by the help of dream.", "Christopher Nolan", "Emma Thomas") +inception = media.Movie("Inception", "148 Minutes", "Science Fiction Film", "https://upload.wikimedia.org/wikipedia/en/2/2e/Inception_%282010%29_theatrical_poster.jpg", "https://www.youtube.com/watch?v=d3A3-zSOBT4", "Creating an idea in other person mind by the help of dream.", "Christopher Nolan", "Emma Thomas") -shutter_island= media.Movie("Shutter Island", "138 Minutes", " Neo-Noir Psychological Thriller", "https://upload.wikimedia.org/wikipedia/en/7/76/Shutterislandposter.jpg", "https://www.youtube.com/watch?v=YDGldPitxic", "A us marshal stuck in an Asylum in an island.", "Martin Scorsese", "Mike Medavoy") +shutter_island = media.Movie("Shutter Island", "138 Minutes", " Neo-Noir Psychological Thriller", "https://upload.wikimedia.org/wikipedia/en/7/76/Shutterislandposter.jpg", "https://www.youtube.com/watch?v=YDGldPitxic", "A us marshal stuck in an Asylum in an island.", "Martin Scorsese", "Mike Medavoy") -#the_accountant=media.Movie("The Accountant", "Story of autism guy as a clever accountant and army skill", "https://upload.wikimedia.org/wikipedia/en/thumb/e/e4/The_Accountant_%282016_film%29.png/220px-The_Accountant_%282016_film%29.png", "https://www.youtube.com/watch?v=DBfsgcswlYQ") +movies = [boyka_undisputed, avatar, interstellar, the_big_sick, inception, shutter_island] #List of movies to pass to fresh_tomatoes -#lucy=media.Movie("Lucy", "A woman's strength and thinking power grow exponentially after the effects of a performance-enhancing drug set in.", "https://upload.wikimedia.org/wikipedia/en/thumb/1/14/Lucy_%282014_film%29_poster.jpg/220px-Lucy_%282014_film%29_poster.jpg", "https://www.youtube.com/watch?v=MVt32qoyhi0") +#TVShows class objects with TV Show details -#the_sixth_sense=media.Movie("The Sixth Sense", "A child psychologist, starts treating a young boy who acts as a medium of communication between Crowe and a slew of unhappy spirits.", "https://upload.wikimedia.org/wikipedia/en/6/66/The_sixth_sense.jpg", "https://www.youtube.com/watch?v=VG9AGf66tXM") +game_of_thrones = media.TVShows("Game of Thrones", "50-80 Minutes", "Fantasy Drama", "https://upload.wikimedia.org/wikipedia/en/d/d8/Game_of_Thrones_title_card.jpg", "https://www.youtube.com/watch?v=Egy5A070cbA&index=24&list=PLh8jmroR-sdjN2mWAylt5gBJ5mEQapAfN", "Several royal families desire the Iron Throne to gain control of Westeros. Whilst kingdoms fight each other for power, a sinister force lurks beyond the Wall in the north.", "7", "HBO", "David Benioff, D. B. Weiss") -movies=[boyka_undisputed, avatar, interstellar, the_big_sick, inception, shutter_island]#, the_accountant, lucy, the_sixth_sense] +westworld = media.TVShows("Westworld", "57-91 Minutes", "Science Fiction Western Thriller", "https://upload.wikimedia.org/wikipedia/en/e/eb/Westworld_%28TV_series%29_title_card.jpg", "https://www.youtube.com/watch?v=IuS5huqOND4", "In a futuristic Western-themed amusement park, Westworld, the visitors interact with automatons. However, all hell breaks loose when the automatons begin malfunctioning.", "1", "HBO", "Jonathan Nolan, Lisa Joy") -fresh_tomatoes.open_movies_page(movies) \ No newline at end of file +silicon_valley = media.TVShows("Silicon Valley", "28-39 Minutes", "Comedy Television Series", "https://upload.wikimedia.org/wikipedia/en/3/33/Silicon_valley_title.png", "https://www.youtube.com/watch?v=69V__a49xtw", "Set amidst the high-tech world of the Silicon Valley in USA, the series revolves around the struggles of six programmers who are trying to make a mark in the big, bad world of programming.", "4", "HBO", "Mike Judge, John Altschuler, Dave Krinsky") + +tv = [game_of_thrones, westworld, silicon_valley] #List of TV Shows to pass to fresh_tomatoes + +#MusicVideo class objects with Music Video details + +blank_space = media.MusicVideo("Blank Space", "4:33 Minutes", "Electropop", "https://upload.wikimedia.org/wikipedia/en/7/7c/Taylor_Swift_-_Blank_Space_%28Official_Single_Cover%29.png", "https://www.youtube.com/watch?v=e-ORhEE9VVg", "Taylor Swift", "Joseph Kahn", "Big Machine, Republic", "1") + +we_dont_talk_anymore = media.MusicVideo("We Don't Talk Anymore", "3:51 Minutes", "Pop", "https://upload.wikimedia.org/wikipedia/en/4/40/Charlie_Puth_Feat._Selena_Gomez_-_We_Don%27t_Talk_Anymore_%28Official_Single_Cover%29.png", "https://www.youtube.com/watch?v=3AtDnEC4zak", "Charlie Puth Feat Selena Gomez", "Phil Pinto", "Atlantic", "9") + +back_to_you = media.MusicVideo("Back to You", "3:18 Minutes", "Pop", "https://upload.wikimedia.org/wikipedia/en/6/6e/Louis_Tomlinson_-_Back_to_You_%28Single_Cover%29.jpeg", "https://www.youtube.com/watch?v=-HjpL-Ns6_A", "Louis Tomlinson Feat Bebe Rexha", "Craig Moore", "78 Productions, Epic", "40") + +music = [blank_space, we_dont_talk_anymore, back_to_you] +#fresh_tomatoes.open_movies_page(movies) \ No newline at end of file