Plex AutoScan in Docker Container - n05urpr1532-MHA-Team/PTS-Team GitHub Wiki


Table of Contents

  1. Install
  2. Configure PlexAutoScan with automated clients
  3. Finishing the setup
  4. Manual Scans
  5. INFO

1. Install

Note: Before you get started, Ensure that you have plex completely installed and configured before running PlexAutoScan. Sonarr/Radarr can be on a remote/another machine, but PlexAutoScan has to be on same machine as your Plex installation.

Type the following to access your current build's menu:
sudo pts

Select [6] CBOX-PAS : PlexAutoScan

Press [1] to start the token creation process. Only do this once as pressing again will change your SERVER_PASSKEY You will see RED "X", but token deployed. This is ok, continue on.

Press [2] to change you language from EN if you need to. Once complete go to step 3, if not changing go directly to step 3.

Press [3] to let the system determine your Plex install type, NOT-SET should change to either "abc" or "plex" based on your installed container.

Once all the steps above are completed. Press [D], this will deploy the PlexAutoScan Docker

You should now see "Green Check Boxes" on each line. And "plexautoscan" should be running in Portainer.

Your WEBHOOK for Sonarr/Radarr will be displayed for you. Please make note of this.

Once that's updated, you'll be back in main interface of Plex Autoscan, and now you can exit the PlexAutoScan Interface.

2. Configure PlexAutoScan with automated clients

Note: Before you get started, if you have a connection for "Plex Media Server" setup in Radarr/Sonarr, you'll have to disable or remove them before using PlexAutoScan.

(i) Sonarr.

Visit your Sonarr settings page and click on connect.

Select connect from one of 2 places in your Sonarr settings

After pressing connect, click add a new option. (Ignore the fact that I already have it added please.)

A new popup will show up on your Sonarr interface - scroll down to find the "Webhook" option. Click on the webhook option.

Keep the name value as anything you want, fill the URL part with the webhook URL you got after deploying PlexAutoScan from PTS menu.

Press test before pressing save, if the test passes then press save. You've set up your PlexAutoScan with Sonarr.

(ii) Radarr.

Visit your Radarr settings page and click on connect. Select connect in your Radarr settings

After pressing connect, click add a new option. (Ignore the fact that I already have it added please.)

A new popup will show up on your Radarr interface - scroll down to find the "Webhook" option. Click on the webhook option.

Keep the name value as anything you want, fill the URL part with the webhook URL you got after deploying PlexAutoScan from PTS menu. Press test before pressing save, if the test passes then press save. You've set up your PlexAutoScan with Radarr.

NOTE:If you are setting up webhooks in Radarr V3 (Aphrodite). Make sure you change METHOD from PUT to POST.

3. Finishing the setup.

Let's get this out of the way here, PlexAutoScan won't run at the same time that Plex is doing a Library Scan.

You have to completely turn off scanning in your Plex for good, or you'll have to scan manually later since Plex Autoscan can't scan during the time your Plex scan is running in your Plex Interface.

(i) How to turn off Plex scanner?

Glad you asked, Press settings in your Plex interface, then you should find "Library" option in your settings as below:

Select that and proceed to make sure you have these 4 things unticked,

That wasn't so hard was it? You have officially turned off Plex Scanner and moved on for Plex Autoscan. Have a great time. Note: If you ever have doubts about whether files are being scanned, view the logs in Portainer for a live view of Plex AutoScan activity.

4. Manual Scans.

(i) Triggering manual scans.

(This option is now enabled by default)

Hey so I add some stuff manual but if I can't scan using Plex scanner since it comes in the way of Plex Autoscans functions how can I refresh libraries which aren't used in my Sonarr/Radarr?

Copy your webhook URL of Plex Autoscan and paste into a browser, you'll get a page like this:

Ex: https://plexautoscan.domain.com/SERVER_KEY

In the path to scan, enter the folder in your system which you'd like to scan, example: /mnt/unionfs/movies/Aladdin (2019)/Have to have the trailing /. and press submit, Plex AutoScan will process the scan request.

5. INFO.

Here are some key notes on working features of Plex Autoscan.

  • By default, Plex AutoScan will automatically enable trash collection after it scans a section. You can read more about this setting and it's configuration options at l3uddz Plex AutoScan Page