mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
fix incorrect album fetching
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user