Skip to main content

Autoscan

Autoscan is an improved method of updating your Plex, Jellyfin, or Emby libraries by the use of webhooks sent from the Connect feature within Sonarr and Radarr. More information can be found here: https://github.com/Cloudbox/autoscan

Prerequisite

Autoscan will use a token to gain access to your media server application to perform its update functions.

Plex Token

Jellyfin API Token

  • To create your Jellyfin API token for autoscan first navigate to your Jellyfin menu

jellyfin-menu.png

  • Next select the Jellyfin Dashboard menu

jellyfin-dashboard.png

  • Then select API Keys in the Advanced dashboard menu

jellyfin-api-keys.png

  • Fom here you will need to click the + button to create a new API token

jellyfin-api-keys-add.png

  • Name your API Key and save it using the Save button

jellyfin-api-key-name-save.png

  • Finally, from here you will see your API Key to copy and save so that you may enter it when prompted by the autoscan installer script

jellyfin-api-keys-copy.png

Emby API Token

  • To create your Emby API token for autoscan first navigate to your Emby admin menu

emby-admin-menu.png

  • Then select API Keys in the Advanced menu section

emby-api-keys.png

  • From here select the New Api Key button

emby-new-api-key.png

  • Name your API Key and save it using the Save button

emby-new-api-key-name-save.png

  • Finally, from here you will see your API Key to copy and save so that you may enter it when prompted by the autoscan installer script

emby-new-api-key-copy.png

Installation

  • Login to your service via SSH
  • Execute the following command to install autoscan:
bash <(wget -qO- https://scripts.usbx.me/main/autoscan/autoscan-install.sh)```
### Adding Webhooks to Sonarr and Radarr
After successfully installing autoscan via the script you will see the two Webhook URLs shown that are needed to add to your Sonarr and Radarr instances

#### Sonarr Webhook
* Navigate to `Settings >> Connect >> + >> Webhook`
    ```
    Name: autoscan
    On Grab: NO
    On Import: YES
    On Upgrade: YES
    On Rename: YES
    On Series Delete: YES
    On Episode File Delete: YES
    On Episode File Delete For Upgrade: YES
    On Health Issue: NO
    On Application Update: NO
    URL: (as shown in SSH terminal per autoscan installer script output)
    Method: POST
    Username: (as entered per autoscan installer script prompts)
    Password: (as entered per autoscan installer script prompts)
    ```
    
#### Radarr Webhook
* Navigate to `Settings >> Connect >> + >> Webhook`
    ```
    Name: autoscan
    On Grab: NO
    On Import: YES
    On Upgrade: YES
    On Rename: YES
    On Movie Addded: YES
    On Movie Delete: YES
    Movie File Delete: YES
    Movie File Delete for Upgrade: YES    
    On Health Issue: NO
    On Application Update: NO
    URL: (as shown in SSH terminal per autoscan installer script output)
    Method: POST
    Username: (as entered per autoscan installer script prompts)
    Password: (as entered per autoscan installer script prompts)
    ```