mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-08 19:28:38 +01:00
Make sure to select cover art from media_file that has it. Fix #360
This commit is contained in:
parent
ab1c943d1f
commit
bcaf330233
2 changed files with 8 additions and 6 deletions
|
|
@ -119,7 +119,7 @@ var (
|
|||
)
|
||||
|
||||
func parseOutput(output string) map[string]string {
|
||||
split := map[string]string{}
|
||||
outputs := map[string]string{}
|
||||
all := inputRegex.FindAllStringSubmatchIndex(output, -1)
|
||||
for i, loc := range all {
|
||||
// Filename is the first captured group
|
||||
|
|
@ -135,9 +135,9 @@ func parseOutput(output string) map[string]string {
|
|||
// if this is the last match
|
||||
info = output[initial:]
|
||||
}
|
||||
split[file] = info
|
||||
outputs[file] = info
|
||||
}
|
||||
return split
|
||||
return outputs
|
||||
}
|
||||
|
||||
func extractMetadata(filePath, info string) (*Metadata, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue