Awesome Open Source
Awesome Open Source

Sonarr, Radarr and Lidarr Auto Search

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

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 or Radarr icons as direct search links on IMDb, TVDb, TMDb, Trakt, TVmaze, MusicBrainz, Letterboxd, TV Calendar, Rotten Tomatoes, metacritic and simkl websites.

New features (V2.2)

  • Metacritic integration.
  • Simkl integration.
  • Update the Radarr logo used from version 0 to version 3.
  • Fix the trakt integration by adding a wait before searching for containers on the page.

New features (V2.1)

  • Rotten tomatoes integration.
  • Improved Trakt integration.
  • Set the wait time when searching for a servarr search input element to 6 seconds and add debugging settings to allow increasing/decreasing this time.
  • Grunt added as a task runner and all external libs now added via npm.
  • Fully consolidate chromium and firefox dists.

New features (V2)

  • TV Calendar integration
  • Automated config based on Sonarr, Radarr or Lidarr version obtained from the respective API

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

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).

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.

Thanks

Thanks to the following for helping with this project:

banterboy
aommm

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


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,513,839
Chrome Extension (5,926
Chrome (2,850
Search (2,682
Firefox (1,819
Firefox Addon (1,058
Firefox Extension (869
Edge (420
Imdb (342
Tmdb (279
Sonarr (190
Radarr (163
Edge Extension (162
Related Projects