sonarr-radarr-lidarr-autosearch-browser-extension icon indicating copy to clipboard operation
sonarr-radarr-lidarr-autosearch-browser-extension copied to clipboard

An extension for Chromium and Firefox browsers that automates searching on Servarr instances based on a modified URL, and adds context menus for direct searching from any selected text. Adds icons as...

Sonarr, Radarr and Lidarr Auto Search

Chrome Web Store Chrome Web Store
Mozilla Add-on Mozilla Add-on
Edge

Overview

This is an extension for Chromium browsers and Firefox that:

  1. Populates the search field on Sonarr, Radarr or Lidarr with any text added to the end of the search URL and then triggers the input event on the search field to fire off a search request. For instance, the standard search page url for Sonarr would be http://my.sonarr.domain:7357/add/new. This extension takes a URL like http://my.sonarr.domain:7357/add/new/fringe and automatically triggers the page to show results for fringe.

  2. When right-clicking selected text on any page this extension exposes a context menu with entries for Sonarr, Radarr and Lidarr that allow a direct search for the selected text in a new tab.

  3. Adds Sonarr, Radarr or Lidarr icons as direct search links on IMDb, TVDb, TMDb, Trakt, TVmaze, MusicBrainz, Letterboxd, TV Calendar, Rotten Tomatoes, metacritic, simkl, IPTorrents, last.fm, Allociné and SensCritique websites.

The extension can be disabled from the extension's popup and each context menu item can be disabled from the settings page.

Change log (just the most recent; see releases for full history)

New features & bug fix (V2.5)

  • New feature to allow absolute positioning of the servarr icon either anchored to the side of the page or floating at a user defined position. Only works when one instance of the icon should be injected to the page, otherwise falls back to default positioning. Unsure if this is a feature anyone will actually want to use, but if you find it useful or have any suggestions for improvement please let me know.
  • Bug fix: IMDb was not correctly identifying TV shows and was falling back to everything being identified as a movie when viewing the German version of the site.
  • Remove 'tabs' permission for the extension as not required. Google took down the package because of this permission being included and not required, so this release should see the extension available on the Chrome Web Store soon.

Enhancement (V2.4.2)

  • SensCritique implementation update (Thanks to almottier for making this contribution.)

Bug fix (V2.4.1)

  • Bug fix: Fix imdb integration following their site redesign.

New features & bug fix (V2.4)

  • Allociné integration. (Thanks to Flo for making this contribution.)
  • SensCritique integration. (Thanks to Flo for making this contribution.)
  • Bug fix: context menu wasn't updating correctly when servarr integrations were enabled or disabled.

Getting started

Extension on the Chrome web store

Extension on the Microsoft Edge add-ons store

Add-on on the Firefox add-ons store

Once installed in your browser go to the options page and configure the extension.

Note: this extension defaults to settings applicable to v3.x of Sonarr and Radarr. If you're using v2.0 then go to the advanced settings tab on the options page for guidance.

Settings

Fill out the URL fields for each of your Sonarr, Radarr or Lidarr instances in the format http://my.sonarr.domain:7357. If you also fill in the API keys for each instance, the advanced settings will be automatically populated based on your instance version.

Advanced settings

Search path - this needs to match the URL path that is the search page. This would only ever need to be changed if the URLs are changed by the Sonarr/Radarr/Lidarr developers.

Search input selector - This text is used as a jQuery selector when the extension is trying to find the input search element. Again, this should only require changing to react to changes made by the Sonarr/Radarr/Lidarr developers.

Integrations

If any of the sites on this tab are set as enabled then this extension will attempt to ascertain whether it should include a direct link to search within a Sonarr, Radarr or Lidarr instance, for example:

IMDb Sonarr example

TVDb Sonarr example

Create package

Uses grunt as a task runner, run the following from the root directory to build:

npm i 
grunt release

The grunt release config executes a Powershell script to run web-ext, this can be changed to a bash file if preferred (see comments in the Gruntfile.js).

Tests

Next to no test coverage at the moment and is currently just a development tool to assert code changes, but uses Jest for any available:

npm i 
npm run test

Contribute

If you can make this extension better I'm happy for the help! Please create a pull request and get in touch. Alternatively feel free to raise an issue if you've found a bug or want to suggest a new feature.

To contribute, please create your PR to merge into the staging branch.

Thanks

Thanks to the following for helping with this project:

banterboy
aommm
Flo
almottier

Buy Me a Coffee at ko-fi.com

Thanks to JetBrains for providing an open source license for their products to support this project.

JetBrains logo