From 4b49463e565ba39d04f54ca5534cd161d9b2ac69 Mon Sep 17 00:00:00 2001 From: DirtyRacer1337 Date: Tue, 31 Jan 2023 06:37:09 +0700 Subject: [PATCH] Save collection id --- Jellyfin.Plugin.Stash/Providers/Collections.cs | 5 +++++ Jellyfin.Plugin.Stash/Providers/StashAPI.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.Stash/Providers/Collections.cs b/Jellyfin.Plugin.Stash/Providers/Collections.cs index 8ec00da..9a40265 100644 --- a/Jellyfin.Plugin.Stash/Providers/Collections.cs +++ b/Jellyfin.Plugin.Stash/Providers/Collections.cs @@ -84,6 +84,11 @@ public async Task> GetMetadata(BoxSetInfo info, Cancellat Logger.Error($"Studio Update error: \"{e}\""); } + if (result.HasMetadata) + { + result.Item.ProviderIds.Add(Plugin.Instance.Name, curID); + } + return result; } diff --git a/Jellyfin.Plugin.Stash/Providers/StashAPI.cs b/Jellyfin.Plugin.Stash/Providers/StashAPI.cs index 27242f5..0948b21 100644 --- a/Jellyfin.Plugin.Stash/Providers/StashAPI.cs +++ b/Jellyfin.Plugin.Stash/Providers/StashAPI.cs @@ -355,9 +355,9 @@ public static async Task> StudioUpdate(string sceneID, Ca /* data = http["data"]["findStudio"].ToString(); var sceneData = JsonConvert.DeserializeObject(data); + */ result.HasMetadata = true; - */ return result; }