def start_entertainment():
    """
    Creates two pages: seires and movies
    Opens a movies page on web browser
    """
    create_series()
    create_movies()
    fresh_tomatoes.open_page('movies.html')
Example #2
0
import media
import fresh_tomatoes

ranga = media.Movie("rangastalam",
                    "it is a family entertainment story and emotional",
                    "https://bit.ly/2s2lD70", "https://youtu.be/mhhb6JAJKbE")
ok = media.Movie("ok bangaram", "pure love story", "https://bit.ly/2J0YHiT",
                 "https://youtu.be/UcIL3qsd1-0")
love = media.Movie("lovers", "beautiful and amzing love story",
                   "https://bit.ly/2IJY2za", "https://youtu.be/CnbspuM3jxU")
nenu = media.Movie("nenulocal", "girl was afraid of her father",
                   "https://bit.ly/2ID6a8C", "https://youtu.be/lylc7eY6yRU")
gol = media.Movie("golmol", "friendship and honest movie",
                  "https://bit.ly/2sZe4hI", "https://youtu.be/LGm0LV0gbH4")
#list of movies we have taken and it is defined by movies
movies = [ranga, ok, love, nenu, gol]
fresh_tomatoes.open_page(movies)
Example #3
0
silicon_valley = media.TVshow(
    "Silcon Valley",
    """
    https://images-na.ssl-images-amazon.com/images/M/MV5BOTA4MTE3MTQwMF5BMl5BanBnXkFtZTgwNzk4MTg4MTI@._V1_UX182_CR0,0,182,268_AL_.jpg
    """,
    """
    Follows the struggle of Richard Hendricks,
     a silicon valley engineer trying to build
      his own company called Pied Piper.
    """,
    "https://www.youtube.com/watch?v=69V__a49xtw",
    "4",
    "In Production")

doctor_who = media.TVshow(
    "Doctor Who",
    """
    https://images-na.ssl-images-amazon.com/images/M/MV5BZGM0OTc0YzMtMTdjNS00MGU3LThlZWItYmU4MjliZmQ0OTkzXkEyXkFqcGdeQXVyMjc5OTMxMzQ@._V1_UY268_CR10,0,182,268_AL_.jpg
    """,
    """
    The further adventures of the time-traveling
     alien adventurer and his companions.
    """,
    "https://www.youtube.com/watch?v=Gdi50ZJnE9Y",
    "10",
    "In Production")

movies = [spaceballs, supertroopers, wargames]
tvshows = [futurama, silicon_valley, doctor_who]
fresh_tomatoes.open_page(movies, tvshows)
Example #4
0
import entertainment_center
import fresh_tomatoes

#  Creates a html website
fresh_tomatoes.open_page(entertainment_center.movies)   

        "An Irishman known as Fitzcarraldo in Peru, \
                                         who is determined to transport a steamship over \
                                         a steep hill in order to access a rich rubber \
                                         territory"),
    "airbag":
    media.MusicVideo(
        "Airbag", "https://www.youtube.com/watch?v=KgE29oRPhrI",
        "http://upload.wikimedia.org/wikipedia/en/thumb/a/a1/Radiohead.okcomputer.albumart.jpg/220px-Radiohead.okcomputer.albumart.jpg",
        "Radiohead"),
    "off the rails":
    media.MusicVideo(
        "Off The Rails", "https://www.youtube.com/watch?v=iWOJlLYJiA4",
        "http://upload.wikimedia.org/wikipedia/en/d/d0/The_Notwist_Neon_Golden.jpg",
        "The Notwist"),
    "the x-files":
    media.TvSeries(
        "The X-Files", "https://www.youtube.com/watch?v=mlZIVpVNgpI",
        "http://upload.wikimedia.org/wikipedia/en/e/e1/Thexfiles.jpg", "1"),
    "silicon valley":
    media.TvSeries(
        "Silicon Valley", "https://www.youtube.com/watch?v=69V__a49xtw",
        "http://upload.wikimedia.org/wikipedia/en/thumb/3/33/Silicon_valley_title.png/250px-Silicon_valley_title.png",
        "1")
}

# Creating Object from dictionary
showcase = [k for k in case_dict.values()]

# Launch Webpage
fresh_tomatoes.open_page(showcase)
                       625,
                       "The comedic adventures of a rag-tag group of technical support workers at a large corporation",
                       "http://www.tvposter.net/posters/the_it_crowd_2006_2885_poster.jpg",
                       "https://www.youtube.com/watch?v=YuzbJvxPSCk",
)

DOCTORWHO = media.TvShow("Doctor Who",
                         8,
                         1300,
                         "The adventures of a time traveling alien adventurer and his companions.",
                         "http://www.thedarehub.com/tv/thumbs/show_72525a1fb17068fa8b451c428521086f.jpg",
                         "https://www.youtube.com/watch?v=TivqZTq5u6Y",
)

STARTREK = media.TvShow("Star Trek",
                        3,
                        900,
                        "Captain James T. Kirk and the crew of the Starship Enterprise explore the Galaxy",
                        "http://monsterislandnews.com/yahoo_site_admin/assets/images/star_trek.7074651_std.jpg",
                        "https://www.youtube.com/watch?v=nPDb5wX4H7I",
)

# Creating a movies list to pass to the open_page function
TVSHOWS = [BIGBANGTHEORY, ITCROWD, DOCTORWHO, STARTREK]

# Ordering movies by movie title
TVSHOWS = sorted(TVSHOWS, key=lambda tvshow: tvshow.title)

# Creating and opening in webbrowser the html page containing the movies
fresh_tomatoes.open_page(MOVIES, TVSHOWS)
                            "https://www.youtube.com/watch?v=l3CPz21NzUc",
                            1967)

jean_brodie = media.Movie("The Prime of Miss Jean Brodie",
                            "http://ia.media-imdb.com/images/M/MV5BMjEwNTQ4OTA2MF5BMl5BanBnXkFtZTcwODMwNTUyMQ@@._V1_SX640_SY720_.jpg",
                            "https://www.youtube.com/watch?v=AmNQVo1qpD8",
                            1969)

# Instantiate TV show objects
house_of_cards = media.Show("House of Cards",
                            "https://pmctvline2.files.wordpress.com/2015/12/cwukypqxaaazfdr.png?w=600&h=750",
                            "https://www.youtube.com/watch?v=NTzycsqxYJ0",
                            4)

game_of_thrones = media.Show("Game of Thrones",
                            "http://ia.media-imdb.com/images/M/MV5BMjM5OTQ1MTY5Nl5BMl5BanBnXkFtZTgwMjM3NzMxODE@._V1_UX182_CR0,0,182,268_AL_.jpg",
                            "https://www.youtube.com/watch?v=CuH3tJPiP-U",
                            5)

expanse = media.Show("The Expanse",
                    "https://lh6.googleusercontent.com/-q7i_5Ot1noE/VOZk-85YvAI/AAAAAAAAACE/sqWwWreN_8o/w1108-h1600/c09b551e-0245-43d9-b9ad-7d35b08e9482.png.watermark.png",
                    "https://www.youtube.com/watch?v=8X5gXIQmY-E",
                    1)

# Gather the shows into lists
movie_list = [donnie_darko, cool_hand_luke, jean_brodie]
show_list = [house_of_cards, game_of_thrones, expanse]

# Create and open the trailer site
fresh_tomatoes.open_page(movie_list, show_list)
                             in the RV, which becomes increasingly \
                             complicated when one of them, Krazy-8, wakes up. \
                             They eventually imprison him in Jesse's basement.\
                             Meanwhile, Skyler grows suspicious of Walter's \
                             recent behavior and discovers that their baby is \
                             a girl. Jesse disposes of the body of the other \
                             dealer, Emilio Koyama, using hydrofluoric acid \
                             as per Walt's instructions, but ignores Walt's \
                             warning to use a plastic bin and instead \
                             destroys his bathtub in the process.", 48, 1, 2)

# TVShow creation (Title, Storyline, poster, trailer, station, episodes list)
breaking_bad = TvShow('Breaking bad', 'The secret lifestyle of a chemistry \
                      teacher',
                      'http://upload.wikimedia.org/wikipedia/commons/4/48/' +
                      'Breaking_Bad_logo.png',
                      'AMC',
                      [breaking_bad_e1_s1, breaking_bad_e2_s1])


modern_family = TvShow('Modern Family', 'A comedy that follows the lives of a \
                       peculiar family',
                       'http://upload.wikimedia.org/wikipedia/en/5/53/' +
                       'Modern_Family_Promo_Season_1.jpg',
                       'ABC', [])

# List of tv shows
tvshows = [breaking_bad, modern_family]

fresh_tomatoes.open_page(movies, tvshows)