Ignore missing scenes when submitting fingerprints (#5799)

This commit is contained in:
WithoutPants
2025-04-02 15:48:07 +11:00
committed by GitHub
parent 2eb7bde95a
commit 6ed66f3275
7 changed files with 79 additions and 9 deletions

View File

@@ -10,6 +10,9 @@ type SceneGetter interface {
// TODO - rename this to Find and remove existing method
FindMany(ctx context.Context, ids []int) ([]*Scene, error)
Find(ctx context.Context, id int) (*Scene, error)
// FindByIDs works the same way as FindMany, but it ignores any scenes not found
// Scenes are not guaranteed to be in the same order as the input
FindByIDs(ctx context.Context, ids []int) ([]*Scene, error)
}
// SceneFinder provides methods to find scenes.