mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-01-08 03:39:43 -06:00
FF-2049: Fixing TVEpisodeLookup
This commit is contained in:
@@ -94,16 +94,16 @@ public class TVEpisodeLookup : Node
|
||||
|
||||
string tvShowInfoCacheKey = $"TVShowInfo: {lookupName} ({year})";
|
||||
TVShowInfo result =args.Cache.GetObject<TVShowInfo>(tvShowInfoCacheKey);
|
||||
|
||||
// RegisterSettings only needs to be called one time when your application starts-up.
|
||||
MovieDbFactory.RegisterSettings(Globals.MovieDbBearerToken);
|
||||
|
||||
if (result != null)
|
||||
{
|
||||
args.Logger?.ILog("Got TV show info from cache: " + result.Name);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
// RegisterSettings only needs to be called one time when your application starts-up.
|
||||
MovieDbFactory.RegisterSettings(Globals.MovieDbBearerToken);
|
||||
|
||||
var movieApi = MovieDbFactory.Create<IApiTVShowRequest>().Value;
|
||||
|
||||
args.Logger?.ILog("Lookup TV Show: " + lookupName);
|
||||
|
||||
Reference in New Issue
Block a user