return no entries when out of bounds musicFolderId is requested
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"math"
|
"math"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
@@ -503,7 +504,7 @@ func getMusicFolder(musicPaths []MusicPath, p params.Params) string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
if idx < 0 || idx >= len(musicPaths) {
|
if idx < 0 || idx >= len(musicPaths) {
|
||||||
return ""
|
return os.DevNull
|
||||||
}
|
}
|
||||||
return musicPaths[idx].Path
|
return musicPaths[idx].Path
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user