Beispiel #1
0
Okja = media.Movie(
    "Okja",
    "Tilda Swinton, Jake Gyllenhaal "
    "and Paul Dano star in this drama "
    "about a girl who must keep a powerful "
    "company from abducting her pal, "
    "a gentle beast. Now streaming on Netflix.",
    "http://t1.gstatic.com/images?q=tbn:ANd9GcSkeKv-OKoYw_T-ObRdOKEMfdTrQoJa6O4dLiOhca2PyD1ZkC5c",  # noqa
    "https://www.youtube.com/watch?v=AjCebKn4iic",
    2.1
    )

# TV Class variable
TrueBlood = media.Tv(
    "TrueBlood",
    "Tilda Swinton,
    "Jake Gyllenhaal and Paul Dano star "
    "in this drama about a girl "
    "who must keep a powerful company "
    "from abducting her pal, a gentle beast. "
    "Now streaming on Netflix.",
    "http://www.gstatic.com/tv/thumb/tvbanners/10111497/p10111497_b_v8_aa.jpg",  # noqa
    "https://www.youtube.com/watch?v=hE8wwYzKJOs",
    "HBO"
    )

# Class variables and Tv variables that are used for the fresh_tomatoes
movies = [Inception, Arrival, Passengers, Xmen, War_for_the_planet, Okja]
tvs = [TrueBlood]
fresh_tomatoes.open_videos_page(movies, tvs)
    "The Last One: Part 2",
    "NBC",
)
the_last_one_part_2.RATINGS = the_last_one_part_2.RATINGS[3]

the_hounds_of_baskerville = media.TVSerial(
    "Sherlock",
    "Sherlock and John investigate the ghosts of a"
    " young man who has been seeing monstrous hounds out in the woods"
    " where his father died.",
    88,
    "Benedict Cumberbatch, Martin Freeman, Una Stubbs",
    "Crime, Drama, Mystery",
    "https://lh4.ggpht.com/LY5atFtolosm_TGq5" "VjVxwFigtQ5J40sL_vYIdr3XRI-SyWC_mRJdyihI8HaWeoZTA=h900",
    "https://www.youtube.com/watch?v=bm78r2innnE",
    8.5,
    2,
    2,
    "The Hounds of Baskerville",
    "BBC One",
)
the_hounds_of_baskerville.RATINGS = the_hounds_of_baskerville.RATINGS[4]


movies = [interstellar, inception, avatar, the_dark_knight, the_hunger_games, troy, fight_club]

tvserials = [hardhome, how_your_mother_met_me, slap_bet, the_last_one_part_2, the_hounds_of_baskerville]

videos = movies + tvserials
fresh_tomatoes.open_videos_page(videos)
    "images/time_bandits.jpg",
    "https://www.youtube.com/watch?v=NNO9apbGvzo",
    "dark comedy",
    "PG"
    )

flight_conchords = media.TV(
    "Flight of the Conchords",
    "Two shepherds-turned-musicians from New Zealand try to make it big as a folk duo in New York City.",
    "images/conchords.jpeg",
    "https://www.youtube.com/watch?v=srcc64JZmPw",
    "comedy, musical",
    "22 episodes in 2 seasons"
    )

firefly = media.TV(
    "Firefly",
    "Five hundred years in the future, a renegade crew aboard a small spacecraft tries to survive as they travel the fringes of the galaxy.",
    "images/firefly.jpg",
    "https://www.youtube.com/watch?v=g0O29rZiIRA",
    "action, sci-fi",
    "14 episodes in 1 season"
    )

movies_list = [time_bandits, lola, galaxy_quest, lego_movie, true_romance, alien, miss_granny, french_kiss]
tv_list = [flight_conchords, firefly]

# Use movies_list and tv_list to generate an HTML file and open it in
# a new browser tab
fresh_tomatoes.open_videos_page(movies_list, tv_list)
Beispiel #4
0
                            ''',
                            "https://upload.wikimedia.org/wikipedia/en/5/53/Blade_Runner_poster.jpg",  # NOQA
                            "https://www.youtube.com/watch?v=eogpIG53Cis")
# TV SHOWS information
breaking_bad_1_5 = media.Tv_show(
    "Breaking bad", 60, 1, 5, "AMC",
    "http://cdn.collider.com/wp-content/uploads/breaking_bad_season_3_promo_art_01.jpg",  # NOQA
    "https://www.youtube.com/watch?v=HhesaQXLuRY")
breaking_bad_2_5 = media.Tv_show(
    "Breaking bad", 60, 2, 5, "AMC",
    "http://the-back-row.com/wp-content/uploads/2013/08/79438-breaking-bad-breaking-bad-poster.jpg",  # NOQA
    "https://www.youtube.com/watch?v=I-8914DuyhY")
walking_dead_1_1 = media.Tv_show(
    "Walking dead-'Days Gone Bye'", 60, 1, 1, "AMC",
    "https://upload.wikimedia.org/wikipedia/en/0/0e/TheWalkingDeadPoster.jpg",  # NOQA
    "https://www.youtube.com/watch?v=35FKJpexDho")
walking_dead_2_1 = media.Tv_show(
    "Walking dead-'What Lies Ahead'", 60, 2, 1, " AMC",
    "https://s-media-cache-ak0.pinimg.com/originals/b0/61/d2/b061d28364202bc96dfb8f267876f534.jpg",  # NOQA
    "https://www.youtube.com/watch?v=1OZ0mu8Ey6A")

# List of movies
list_movies = [lord_ofthe_rings_movie, toy_story_movie,
               avengers_movie, harry_potter_movie, pacific_rim_movie,
               blade_runner_movie]
# List of Tv shows
list_tv_show = [breaking_bad_1_5, breaking_bad_2_5,
                walking_dead_1_1, walking_dead_2_1]

fresh_tomatoes.open_videos_page(list_movies, list_tv_show)
Beispiel #5
0
    "Wolowitz and Koothrappali. Will worlds collide? "
    "Does Einstein theorize in the woods?",
    "http://www.gstatic.com/tv/thumb/tvbanners/12912842/p12912842_b_v8_aa.jpg",  # NOQA
    "https://youtu.be/PAm8PV47jMM",
    "1",
    "CBS")

the_big_bang.tv_episodes = [
    "Pilot", "The Big Bran Hypothesis",
    "The Fuzzy Boots Corollary",
    "The Luminous Fish Effect",
    "The Hamburger Postulate",
    "The Middle-Earth Paradigm",
    "The Dumpling Paradox",
    "The Grasshopper Experiment",
    "The Cooper-Hofstadter Polarization",
    "The Loobenfeld Decay",
    "The Pancake Batter Anomaly",
    "The Jerusalem Duality",
    "The Bat Jar Conjecture",
    "The Nerdvana Annihilation",
    "The Shiksa Indeterminacy",
    "The Peanut Reaction",
    "The Tangerine Factor"]

videos = [
    interstellar, inception, fight_club, spirited_away, shutter_island,
    game_of_thrones, the_big_bang, friends, three_idiots]

fresh_tomatoes.open_videos_page(videos)
  the course of their lives.",
  "http://ia.media-imdb.com/images/M/MV5BNTMzNDEzNTcwMV5BMl5BanBnXkFtZTgwMjc5Mjg5NjE@._V1_SY317_CR0,0,214,317_AL_.jpg",  # noqa
  "Thursdays on abc")
gameofthrones = media.Tvshow(
  "Game of Thrones",
  "Peter Dinklage, Lena Headey, Emilia Clarke, Kit Harington, Sophie Turner\
  and Maisie Williams",
  "Several noble families fight for control of the mythical land of Westeros.",
  "http://vignette3.wikia.nocookie.net/gameofthrones/images/2/2c/Season_1_Poster.jpg/revision/latest?cb=20110406150536",  # noqa
  "Thursdays on HBO")
sherlock = media.Tvshow(
  "Sherlock",
  "Benedict Cumberbatch, Martin Freeman and Una Stubbs",
  "A modern update finds the famous sleuth and his doctor partner solving crime\
  in 21st century London.",
  "http://ia.media-imdb.com/images/M/MV5BNTA2MTE1NDI5OV5BMl5BanBnXkFtZTcwNzM2MzU3Nw@@._V1_SY317_CR21,0,214,317_AL_.jpg",  # noqa
  "Sundays on BBC")
orangeisthenewblack = media.Tvshow(
  "Orange is the New Black",
  "Taylor Schilling, Michael Harney, Kate Mulgrew and Danielle Brooks",
  "The story of Piper Chapman, a woman in her thirties who is sentenced to\
  fifteen months in prison after being convicted of a decade-old crime of\
  transporting money to her drug-dealing girlfriend.",
  "https://fanart.tv/detailpreview/fanart/tv/264586/seasonposter/orange-is-the-new-black-536935dae2843.jpg",  # noqa
  "Netflix Original")

tvshows = [friends, downtonabbey, howtogetawaywithmurder, gameofthrones,
           sherlock, orangeisthenewblack]

fresh_tomatoes.open_videos_page(movies, tvshows)