Encode search query before searching plex.
This commit is contained in:
@@ -67,6 +67,7 @@ class Plex {
|
|||||||
}
|
}
|
||||||
|
|
||||||
search(query) {
|
search(query) {
|
||||||
|
query = encodeURIComponent(query)
|
||||||
const url = `http://${this.plexIP}:${this.plexPort}/hubs/search?query=${query}`
|
const url = `http://${this.plexIP}:${this.plexPort}/hubs/search?query=${query}`
|
||||||
const options = {
|
const options = {
|
||||||
timeout: 2000,
|
timeout: 2000,
|
||||||
|
|||||||
Reference in New Issue
Block a user