From 03406b6a2052e27870ed2283ce6ee723c9e9a4e4 Mon Sep 17 00:00:00 2001 From: John Andrews Date: Thu, 30 Jan 2025 07:08:57 +1300 Subject: [PATCH] FF-2021: Added movie.ImdbId to variables --- MetaNodes/TheMovieDb/MovieLookup.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MetaNodes/TheMovieDb/MovieLookup.cs b/MetaNodes/TheMovieDb/MovieLookup.cs index f3f098ee..ea6e5ba0 100644 --- a/MetaNodes/TheMovieDb/MovieLookup.cs +++ b/MetaNodes/TheMovieDb/MovieLookup.cs @@ -48,7 +48,8 @@ public class MovieLookup : Node _Variables = new Dictionary() { { "movie.Title", "Batman Begins" }, - { "movie.Year", 2005 } + { "movie.Year", 2005 }, + { "movie.ImdbId", "tt0372784" } }; } /// @@ -190,6 +191,9 @@ public class MovieLookup : Node if (movie == null) return null; + if(string.IsNullOrWhiteSpace(movie.ImdbId) == false) + args.Variables["movie.ImdbId"] = movie.ImdbId; + var credits = movieApi.GetCreditsAsync(id).Result?.Item; VideoMetadata md = new();