mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-20 15:49:32 -06:00
FF-2049: Fixing TVEpisodeLookup
This commit is contained in:
@@ -103,6 +103,8 @@ namespace FileFlows.AudioNodes
|
||||
AddIfSet(metadata, "TotalDiscs", AudioInfo.TotalDiscs);
|
||||
args.SetMetadata(metadata);
|
||||
|
||||
args.SetDisplayName($"{AudioInfo.Artist} - {AudioInfo.Title}");
|
||||
|
||||
|
||||
string extension = FileHelper.GetExtension(filename).ToLowerInvariant()[1..];
|
||||
switch (extension)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -159,6 +159,9 @@ public class MovieLookup : Node
|
||||
args.Variables["movie.Title"] = result.Title;
|
||||
args.Logger?.ILog("Detected Movie Title: " + result.Title);
|
||||
args.Variables["movie.Year"] = result.ReleaseDate.Year;
|
||||
|
||||
args.SetDisplayName($"{result.Title} ({result.ReleaseDate.Year})");
|
||||
|
||||
args.Logger?.ILog("Detected Movie Year: " + result.ReleaseDate.Year);
|
||||
var meta = GetVideoMetadata(args, movieApi, result.Id, args.TempPath);
|
||||
args.Variables["VideoMetadata"] = meta;
|
||||
|
||||
@@ -110,7 +110,6 @@ public class TVEpisodeLookup : Node
|
||||
|
||||
var response = movieApi.SearchByNameAsync(lookupName).Result;
|
||||
|
||||
|
||||
// try find an exact match
|
||||
result = response.Results.OrderBy(x =>
|
||||
{
|
||||
@@ -197,6 +196,13 @@ public class TVEpisodeLookup : Node
|
||||
{
|
||||
Variables["tvepisode.LastEpisode"] = lastEpisode.Value;
|
||||
args.Logger?.ILog("Detected Last Episode: " + lastEpisode.Value);
|
||||
|
||||
args.SetDisplayName(
|
||||
$"{result.Name} - {epInfo.SeasonNumber}x{episode.Value:D2}-{lastEpisode.Value:D2} - {epInfo.Name}");
|
||||
}
|
||||
else
|
||||
{
|
||||
args.SetDisplayName($"{result.Name} - {epInfo.SeasonNumber}x{episode.Value:D2} - {epInfo.Name}");
|
||||
}
|
||||
|
||||
Variables["tvepisode.Overview"] = epInfo.Overview;
|
||||
|
||||
Reference in New Issue
Block a user