mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-01-05 20:29:32 -06:00
FF-2021: Added movie.ImdbId to variables
This commit is contained in:
@@ -48,7 +48,8 @@ public class MovieLookup : Node
|
||||
_Variables = new Dictionary<string, object>()
|
||||
{
|
||||
{ "movie.Title", "Batman Begins" },
|
||||
{ "movie.Year", 2005 }
|
||||
{ "movie.Year", 2005 },
|
||||
{ "movie.ImdbId", "tt0372784" }
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user