Skip to main content

Movie Lookup

Movie Lookup

Looks performs a search on TheMovieDB.org.

Stores the Metadata inside the parameter 'VideoMetadata'.

Variables

VariableDescriptionTypeExample
movie.TitleThe movie titlestringBatman Begins
movie.YearThe movie yearnumber2005
VideoMetadataObject containing video metadataobjectsee below

Outputs

  1. Movie found
  2. Movie not found

MovieInfo

    // the video title
Title:string;
// the video subtitle, e.g. a tv show episode title
Subtitle:string;
// the video description
Description:string;
// the year the video was released
Year:int;
// the full date the video was released
ReleaseDate:DateTime;
// a file path to the video's art, e.g. a poster or episode thumbnail
ArtJpeg:string;
// the original language
OriginalLanguage:string;
// the season the episode belongs, or null if not a tv show
Season:number;
// the episode number in the season the episode belongs, or null if not a tv show
Episode:number;
// a list of actors in the video
Actors:string[];
// a list of directories who directed this video
Directors:string[];
// a list of writers who wrote this video
Writers:string[];
// a list of producers who produced this video
Producers:string[];
// a list of genres for this video
Genres:string[];

Example Function

var movieInfo = Variables.VideoMetadata;

if(!movieInfo)
{
Logger.WLog('Failed to get movie metadata');
return 2;
}

if(movieInfo.Season === 2)
{
Logger.ILog('Its season 2!')
return 1;
}

return 1;