mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 14:52:51 +02:00
Fix: escape special characters in provider urls
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user