TvShowSeason

tmdb-js/sections/types. TvShowSeason

A class that represents a specific TV show season on TMDb.

Constructor

new TvShowSeason(seasonNumber, tvShow)

Initializes this object.
Source:
Parameters:
Name Type Description
seasonNumber Number The season number.
tvShow exports.TvShow The parent TV show.

Methods

(async) getAccountStatesAsync(sessionId, guestSessionId) → {Promise.<*>}

Gets account state data. Only one of the IDs is allowed to be null or non-null in the same method call.
Source:
Parameters:
Name Type Description
sessionId string The session ID.
guestSessionId string The guest session ID.
Returns:
Type:
Promise.<*>
A Promise of account state data in JSON format.

(async) getAggregateCreditsAsync() → {Promise.<*>}

Gets aggregate credits data of this TV show season.
Source:
Returns:
Type:
Promise.<*>
A Promise of aggregate credit data in JSON format.

(async) getChangesAsync(startDate, endDate, page) → {Promise.<*>}

Gets the changes of the TV show season in question.
Source:
Parameters:
Name Type Default Description
startDate string The start date.
endDate string The end date.
page Number null The page.
Returns:
Type:
Promise.<*>
A Promise of JSON data with changes.

(async) getCreditsAsync() → {Promise.<*>}

Gets the credits of this TV show season.
Source:
Returns:
Type:
Promise.<*>
A Promise of credit data in JSON format.

(async) getDetailsAsync() → {Promise.<*>}

Gets the details of this TV show season.
Source:
Returns:
Type:
Promise.<*>
A Promise of season detail data in JSON format.

getEpisode(episodeNumber) → {exports.TvShowEpisode}

Gets a TvShowEpisode object with the passed episode number.
Source:
Parameters:
Name Type Description
episodeNumber Number The episode number.
Returns:
Type:
exports.TvShowEpisode
A TvShowEpisode object with the passed episode number.

(async) getEpisodeCountAsync() → {Promise.<Number>}

Gets the number of episodes in this season.
Source:
Returns:
Type:
Promise.<Number>
A Promise of an episode count.

(async) getEpisodesAsync() → {Promise.<Array.<exports.TvShowEpisode>>}

Gets all episodes of this TV show season.
Source:
Returns:
Type:
Promise.<Array.<exports.TvShowEpisode>>
A Promise of an array with all episodes of this season.

(async) getExternalIdsAsync() → {Promise.<*>}

Gets the external IDs of this TV show season.
Source:
Returns:
Type:
Promise.<*>
A Promise of external ID data in JSON format.

(async) getImagesAsync() → {Promise.<*>}

Gets the images of this TV show season.
Source:
Returns:
Type:
Promise.<*>
A Promise of image data in JSON format.

(async) getTranslationsAsync() → {Promise.<*>}

Gets the translations of this TV show season.
Source:
Returns:
Type:
Promise.<*>
A Promise of translation data in JSON format.

(async) getVideosAsync() → {Promise.<*>}

Gets the videos of this TV show season.
Source:
Returns:
Type:
Promise.<*>
A Promise of video data in JSON format.