<filename>media.py<gh_stars>0
import webbrowser


# Create the class movie to store movie related information
class Movie():

    def __init__(self, movie_title, movie_story, pos_image, trailer_youtube):
        # create space in memory for a new instance of class movie
        self.title = movie_title
        self.storyline = movie_story
        self.poster_image_url = pos_image
        self.trailer_youtube_url = trailer_youtube

    def show_trailer(self):
        # method that shows movie trailer
        webbrowser.open(self.trailer_youtube_url)

<filename>media.py<gh_stars>0
import webbrowser


# Create the class movie to store movie related information
class Movie():

    def __init__(self, movie_title, movie_story, pos_image, trailer_youtube):
        # create space in memory for a new instance of class movie
        self.title = movie_title
        self.storyline = movie_story
        self.poster_image_url = pos_image
        self.trailer_youtube_url = trailer_youtube

    def show_trailer(self):
        # method that shows movie trailer
        webbrowser.open(self.trailer_youtube_url)

# Create the class movie to store movie related information # create space in memory for a new instance of class movie # method that shows movie trailer