diff --git a/web/server.go b/web/server.go index 67ce047..838139c 100644 --- a/web/server.go +++ b/web/server.go @@ -34,8 +34,13 @@ type MediaByBranch struct { func gameSearchHandler(respWriter http.ResponseWriter, request *http.Request) { title := strings.ToLower(request.PostFormValue("title")) platform := strings.ToLower(request.PostFormValue("platform")) + showNotAvailable := strings.ToLower(request.PostFormValue("showNotAvailable")) == "true" + client := libClient.Client{} games := client.FindGames(title, platform) + if !showNotAvailable { + games = filterAvailable(games) + } renderMediaResults(games, respWriter) } diff --git a/web/static/games.html b/web/static/games.html index 65e0205..be6a93d 100644 --- a/web/static/games.html +++ b/web/static/games.html @@ -10,7 +10,6 @@