fix incorrect album fetching

This commit is contained in:
geoffrey45
2021-12-28 10:08:31 +03:00
parent 49947a22b2
commit c49e1e48f1
7 changed files with 28 additions and 13 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
let base_uri = "http://127.0.0.1:9876";
const getAlbum = async (name) => {
const res = await fetch(base_uri + "/albums/" + name);
const getAlbum = async (name, artist) => {
const res = await fetch(base_uri + "/albums/" + name + "::" + artist);
if (!res.ok) {
const message = `An error has occured: ${res.status}`;