Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TVShow

A TVShow as returned from get, search or any of the methods from Client. This is not intended to be directly created by consumers of this library

Hierarchy

Index

Constructors

constructor

  • Creates a new TVShow from omdb results. This isn't intended to be used by consumers of this library, instead see get, search or any methods from Client.

    Parameters

    • obj: OmdbTvshow

      The tv show info we got from omdb

    • opts: MovieOpts

      Options that we used to fetch this TVShow, so we can use them to fetch episodes

    Returns TVShow

Properties

actors

actors: string

leading actors that starred in the movie

awards

awards: string

awards won

Optional boxoffice

boxoffice: undefined | string

Box office earnings

country

country: string

countries this movie was released in

director

director: string

the directors of the movie

Optional dvd

dvd: Date

date of the DVD release

Optional end_year

end_year: undefined | number

year this show ended if it's ended

genres

genres: string

the genres that this movie belongs to

imdbid

imdbid: string

id of the movie on imdb

imdburl

imdburl: string

direct URL to the movie on imdb

languages

languages: string

languages this movie was released in

metascore

metascore: string

score from a bunch of different review sites

name

name: string

title of the movie

plot

plot: string

the plot (can either be long or short as specified in MovieRequest)

poster

poster: string

link to the poster for this movie

Optional production

production: undefined | string

Production studio

rated

rated: string

what the movie was rated in its country of release

rating

rating: number

the rating as it appears on imdb

ratings

ratings: Rating[]

ratings for the media from various sources

Optional released

released: Date

date that the movie was originally released

runtime

runtime: string

the runtime of the movie

series

series: boolean

whether or not this is a TV series

start_year

start_year: number

year this show started

title

title: string

the title of the movie in English

totalseasons

totalseasons: number

how many seasons this show ran

type

type of media (see RequestType)

votes

votes: string

votes received on imdb

Optional website

website: undefined | string

website for the movie

writer

writer: string

writers of the movie

year

year: number

year the movie was released

Methods

episodes

  • Fetches episodes of a TV show

    Returns Promise<Episode[]>

    Promise yielding list of episodes

Generated using TypeDoc