Default path for music_directory is now parsed from mpd.conf

This commit is contained in:
aditya-K2
2021-11-05 15:04:22 +05:30
parent a365ca8c08
commit aba0dae95e
2 changed files with 2 additions and 1 deletions

View File

@@ -94,6 +94,7 @@ func getMusicDirectory() string {
for _, j := range maps {
if strings.Contains(j, "music_directory") {
s := strings.SplitAfter(strings.ReplaceAll(j, " ", ""), "y")[1]
s = strings.ReplaceAll(s, "\t", "")
d := ""
for z, m := range s {
if (z != 0) && (z != (len(s) - 1)) {