def get_trailer_data(data, object_name, flag=0):
    """
    This function gets name, story_line, you_tube_trailer, poster_image_url,
    release_date of movies or Tv series.

    :param:
        (DataFrame) data: Stores DataFrame containing movie/Tv series details
        (str) object_name: Stores name of film/Tv_series.
        (int) flag: If flag=0 then no season information is fetched.
                    If flag=1 then season information is fetched.
    :return:
        (str) name: Name of the movie or Tv_series.
        (str) story_line: Small summary of film/Tv_series.
        (str) yt_trailer_url: You tube trailer link.
        (str) poster_image_url: Poster image link.
        (str) release_date: Date of release of movie/Tv_series
        (str) season: The season information of Tv_series if flag=1
    """
    name = object_name
    story_line = data.loc[object_name, 'story_line']
    yt_trailer_url = data.loc[object_name, 'you_tube_trailer_url']
    poster_image_url = data.loc[object_name, 'poster_image_url']
    release_date = data.loc[object_name, 'release_date']

    # Restricting story_line to 136 characters for fixed grid size.
    if len(story_line) > 136:
        story_line = story_line[0:136] + "..."

    # Getting season information if Tv series
    if flag:
        season = data.loc[object_name, 'season']
        return [name, story_line, yt_trailer_url,
                poster_image_url, release_date, season]
    else:
        return [name, story_line, yt_trailer_url,
                poster_image_url, release_date]