Fix: escape special characters in provider urls

This commit is contained in:
mx03 2021-12-30 10:57:28 +01:00
parent 5edff98942
commit 02db145a0c
5 changed files with 15 additions and 4 deletions

View file

@ -8,6 +8,7 @@ class Audnexus {
}
authorASINsRequest(name) {
name = encodeURIComponent(name);
return axios.get(`${this.baseUrl}/authors?name=${name}`).then((res) => {
return res.data || []
}).catch((error) => {
@ -17,6 +18,7 @@ class Audnexus {
}
authorRequest(asin) {
asin = encodeURIComponent(asin);
return axios.get(`${this.baseUrl}/authors/${asin}`).then((res) => {
return res.data
}).catch((error) => {