dynamiccookies / Radarr-Assistant

An interface that ties into Radarr's API to allow searching for movies, verifying movies currently in the Radarr library, and adding movies to Radarr's queue.
MIT License
0 stars 0 forks source link

Bug in Log: Apostrophe in title breaks the string #41

Closed dynamiccookies closed 1 year ago

dynamiccookies commented 1 year ago

|Don|619730

"Don" is supposed to be "Don't Worry Darling", but the apostrophe has broken the string.

dynamiccookies commented 1 year ago

The issue is in the hidden input elements value attributes:

<input type="hidden" id="searchTerm" name="searchTerm" value="don" t worry darling'>
<input type="hidden" id="title" name="title" value="don" t worry darling'>

https://github.com/dynamiccookies/Radarr-Assistant/blob/b84ed1e9c7346c7acf416606fa274bae133a5e85/files/script.js#L188-L189