mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
docs: add FindByPaths comment
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
657b0ca122
commit
d327f81fe0
@ -194,9 +194,11 @@ func (r *mediaFileRepository) GetCursor(options ...model.QueryOptions) (model.Me
|
||||
}, nil
|
||||
}
|
||||
|
||||
// FindByPaths finds media files by their paths.
|
||||
// The paths can be library-qualified (format: "libraryID:path") or unqualified ("path").
|
||||
// Library-qualified paths search within the specified library, while unqualified paths
|
||||
// search across all libraries for backward compatibility.
|
||||
func (r *mediaFileRepository) FindByPaths(paths []string) (model.MediaFiles, error) {
|
||||
// Parse library-qualified paths and build query
|
||||
// Format: "libraryID:path" or just "path" (backward compatibility)
|
||||
query := Or{}
|
||||
|
||||
for _, path := range paths {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user