mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-10 12:19:40 +00:00
Fix: escape special characters in provider urls
This commit is contained in:
parent
5edff98942
commit
02db145a0c
5 changed files with 15 additions and 4 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue