Skip to main content

TV Show Lookup

TV Show Lookup

Looks performs a search on TheMovieDB.org for a TV Show

Stores the Metadata inside the parameter VideoMetadata.

Variables

VariableDescriptionTypeExample
tvshow.TitleThe TV show titlestringThe Batman
tvshow.YearThe original year the show airednumber2004
VideoMetadataObject containing video metadataobjectsee below

Use Folder Name

When selected, the folder name will be used to lookup the TV shows title.

If the title contains Season, Staffel, Saison, Specials then the parent folder will be used.

PathShow Name
/media/tv/Batman/Specials/Batman - 0x24.mkvBatman
/media/tv/Batman/Season 2/Batman - 2x24.mkvBatman
/media/tv/Batman/Staffel 2/Batman - 2x24.mkvBatman
/media/tv/Batman/Saison 2/Batman - 2x24.mkvBatman
/media/tv/Batman/Batman - 2x24.mkvBatman

Outputs

  1. TV Show found
  2. TV Show not found

VideoMetadata

    // the video title
Title:string;
// the video description
Description:string;
// the year the tv show first aired
Year:int;
// the full date the tv show first aired
ReleaseDate:DateTime;
// a file path to the tv shows's art, e.g. a poster
ArtJpeg:string;
// the original language of the tv show
OriginalLanguage:string;
// a list of genres for this tv show
Genres:string[];

Example Function

var tvInfo = Variables.VideoMetadata;

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

if(tvInfo.OriginalLanguage === 'en')
{
Logger.ILog('Its english')
return 1;
}

return 2;