Make sure to select cover art from media_file that has it. Fix #360

This commit is contained in:
Deluan
2020-06-27 22:16:07 -04:00
parent ab1c943d1f
commit bcaf330233
2 changed files with 8 additions and 6 deletions
+3 -3
View File
@@ -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) {