Skip to content

Commit

Permalink
Save collection id
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyRacer1337 committed Jan 30, 2023
1 parent aad3e8b commit 4b49463
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Jellyfin.Plugin.Stash/Providers/Collections.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public async Task<MetadataResult<BoxSet>> GetMetadata(BoxSetInfo info, Cancellat
Logger.Error($"Studio Update error: \"{e}\"");
}

if (result.HasMetadata)
{
result.Item.ProviderIds.Add(Plugin.Instance.Name, curID);
}

return result;
}

Expand Down
2 changes: 1 addition & 1 deletion Jellyfin.Plugin.Stash/Providers/StashAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ public static async Task<MetadataResult<BoxSet>> StudioUpdate(string sceneID, Ca
/*
data = http["data"]["findStudio"].ToString();
var sceneData = JsonConvert.DeserializeObject<Models.Studio>(data);
*/

result.HasMetadata = true;
*/

return result;
}
Expand Down

0 comments on commit 4b49463

Please sign in to comment.