class Tmdb::Tv::Season

Included Modules

Defined in:

tv/season.cr

Constructors

Instance Method Summary

Instance methods inherited from module Tmdb::PosterUrls

poster_url(size : String = "original") : String poster_url

Constructor Detail

def self.detail(show_id : Int64, season_number : Int32, language : String | Nil = nil) : Season #

Get the TV season details by id.


[View source]
def self.new(data : JSON::Any, show_id : Int64) #

[View source]

Instance Method Detail

def aggregated_credits(language : String | Nil = nil) : Array(AggregatedCast | AggregatedCrew) #

Get the aggregate credits for TV season.

This call differs from the main #credits call in that it does not only return the season credits, but rather is a view of all the cast & crew for all of the episodes belonging to a season.


[View source]
def air_date : Time | Nil #

[View source]
def changes(start_date : Time | Nil = nil, end_date : Time | Nil = nil) : Array(Change) #

Get the changes for a movie. By default only the last 24 hours are returned.

You can query up to 14 days in a single query by using the start_date and end_date query parameters.


[View source]
def credits(show_id : Int64, language : String | Nil = nil) : Array(Tv::Cast | Tv::Crew) #

Get the credits for TV season.


[View source]
def episodes : Array(Tv::Episode) | Nil #

[View source]
def external_ids(language : String | Nil = nil) : Array(ExternalId) #

Get the external ids for a TV season. We currently support the following external sources.

  • TVDB ID
  • Freebase MID*
  • Freebase ID*
  • TVRage ID*

*Defunct or no longer available as a service.


[View source]
def id : Int64 #

[View source]
def images(language : String | Nil = nil) : Array(Image) #

Get the images that belong to a TV season.

Querying images with a language parameter will filter the results. If you want to include a fallback language (especially useful for backdrops) you can use the include_image_language parameter. This should be a comma seperated value like so: include_image_language=en,null.


[View source]
def name : String #

[View source]
def overview : String #

[View source]
def poster_path : String | Nil #

[View source]
def posters(language : String | Nil = nil) : Array(Poster) #

See #images


[View source]
def season_number : Int32 #

[View source]
def show_id : Int64 #

[View source]
def translations(language : String | Nil = nil) : Array(Translation) #

Get the credits for TV season.


[View source]
def videos(language : String | Nil = nil) : Array(Video) #

Get the videos that have been added to a TV season.


[View source]