class Tmdb::Find

Defined in:

find.cr

Class Method Summary

Class Method Detail

def self.find(external_id : String, external_source : ExternalSource, language : String | Nil = nil, skip_cache : Bool = false) : Array(MovieResult | Tv::ShowResult | PersonResult) #

The find method makes it easy to search for objects in our database by an external id.

This method will search all objects (movies, TV shows and people) and return the results in a single response.

The supported external sources for each object are as follows.

  • IMDb
  • TVDb
  • Facebook
  • Instagram
  • Twitter

[View source]
def self.find_movie(external_id : String, external_source : ExternalSource, language : String | Nil = nil, skip_cache : Bool = false) : Array(MovieResult) #

See #find


[View source]
def self.find_person(external_id : String, external_source : ExternalSource, language : String | Nil = nil, skip_cache : Bool = false) : Array(PersonResult) #

See #find


[View source]
def self.find_tv_show(external_id : String, external_source : ExternalSource, language : String | Nil = nil, skip_cache : Bool = false) : Array(Tv::ShowResult) #

See #find


[View source]