Fixed inconsistent handling of "No results found" and "End of results" messages
Some checks failed
Run Integration Tests / test (push) Failing after 36s
Some checks failed
Run Integration Tests / test (push) Failing after 36s
This commit is contained in:
parent
47f197cf15
commit
70abf0a2bd
13 changed files with 775 additions and 573 deletions
1
music.go
1
music.go
|
@ -65,6 +65,7 @@ func handleMusicSearch(w http.ResponseWriter, settings UserSettings, query strin
|
|||
"Page": page,
|
||||
"HasPrevPage": page > 1,
|
||||
"HasNextPage": len(results) >= 10, // Default page size
|
||||
"NoResults": len(results) == 0,
|
||||
"MusicServices": getMusicServiceNames(),
|
||||
"CurrentService": "all", // Default service
|
||||
"Theme": settings.Theme,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue