Skip to content

Not Searching Sonarr/Radarr #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
StraightSpine opened this issue May 29, 2024 · 3 comments · Fixed by #212
Closed

Not Searching Sonarr/Radarr #196

StraightSpine opened this issue May 29, 2024 · 3 comments · Fixed by #212
Assignees
Labels
bug Something isn't working

Comments

@StraightSpine
Copy link

Describe the bug
When opening Radarr/Sonarr from the respective icon on IMDb & TMDB, the search page is opened but the search field is not populated. The IMDB/TMDB reference appears in the url.

I expect the show to be searchged and to show in the Search field in Radarr/Sonarr.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to (https://www.imdb.com/title/tt0795176/?ref_=chttvtp_t_3)
  2. Click on the Sonarr Icon

Desktop (please complete the following information):

  • OS: W11
  • Browser: Firefox
  • Version: 126.0
  • Extension version: Version 2.8.8

Screenshots
2024-05-29 12_32_37-Add New Series - Sonarr — Mozilla Firefox
2024-05-29 12_32_18-Planet Earth (TV Mini Series 2006) - IMDb — Mozilla Firefox

@StraightSpine StraightSpine added the bug Something isn't working label May 29, 2024
@StraightSpine
Copy link
Author

Uploading 2024-05-29 12_34_15-Servarr autosearch options — Mozilla Firefox.png…

@notjhoan
Copy link

notjhoan commented Jul 8, 2024

I've got the exact same issue with Chrome.

@dynamiccookies
Copy link
Contributor

This is happening to me too, and the cause is here:

let searchUrl = site.domain.replace(/\/$/, '') + site.searchPath + encodeURIComponent(searchTerm).replace(/\./g, ' ');

encodeURIComponent(searchTerm) is replacing the colon with "%3A".

One solution could be to replace the "%3A" with a colon after the encoding is completed:
site.searchPath + encodeURIComponent(searchTerm).replace(/\./g, ' ').replace(/%3A/g, ':')

trossr32 added a commit that referenced this issue Sep 2, 2024
Fix bug where colon is replaced by "%3A" #196
@trossr32 trossr32 linked a pull request Sep 2, 2024 that will close this issue
@trossr32 trossr32 closed this as completed Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants