class Tmdb::Tv::Episode

Included Modules

Defined in:

tv/episode.cr

Constructors

Instance Method Summary

Instance methods inherited from module Tmdb::StillUrls

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

Constructor Detail

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

Get the TV episode details by id.


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

[View source]

Instance Method Detail

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 TV episode. 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(language : String | Nil = nil) : Array(Crew | Cast | GuestStar) #

Get the credits (cast, crew and guest stars) for a TV episode.


[View source]
def crew : Array(Crew) #

[View source]
def episode_number : Int32 #

[View source]
def external_ids : Array(ExternalId) #

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

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

*Defunct or no longer available as a service.


[View source]
def guest_stars : Array(GuestStar) #

[View source]
def id : Int64 #

[View source]
def images : Array(Image) #

Get the images that belong to a TV episode.

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 order : Int32 | Nil #

[View source]
def overview : String #

[View source]
def production_code : String | Nil #

[View source]
def season_number : Int32 #

[View source]
def show_id : Int64 #

[View source]
def still_path : String | Nil #

[View source]
def translations : Array(Tv::Translation) #

Get the translation data for an episode.


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

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


[View source]
def vote_average : Float64 #

[View source]
def vote_count : Int32 #

[View source]