mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-07 20:39:38 +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
|
|
@ -85,7 +85,7 @@ class OpenLibrary {
|
|||
}
|
||||
|
||||
async searchTitle(title) {
|
||||
title = title.replace(/'/g, '')
|
||||
title = encodeURIComponent(title);
|
||||
var lookupData = await this.get(`/search.json?title=${title}`)
|
||||
if (!lookupData) {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue