Skip to content

Plex AutoScan in Docker Container

PhysK edited this page Jan 22, 2020 · 1 revision

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

Useful Starter Links

  1. Introduction
  2. G-Suite Signup
  3. Recommended NewsHosts
  4. Change Log

Prior Planning 101

  1. Recommended Pre-Reading
  2. Server - Storage Planning
  3. Usenet or BitTorrent
  4. PTS Editions
  5. PTS Folder Structure
  6. PTS-Repos
  7. Common Issues

Deploy & Config

PTS-Team
  1. SSH Server Access
  2. Install PTS
  3. WatchTower
  4. Remote Path Mappings

Data Transport
  1. PTS Clone
    1. Google OAuth Keys
    2. PTS Move
    3. PTS Blitz
    4. 2nd HD Option

Key Components

  1. Traefik
  2. Port Guard
  3. PTS Shield
  4. PTS Press
  5. Google Cloud - GCE
    1. Automated setup
  6. Hetzner Cloud
  7. PTS Fork
  8. Extra PTS Commands

Blitz App Info

  1. Accessing PTS Apps
  2. App Port Scheme

Tools & Services

Core Apps [Expand]
  1. Emby
  2. Jackett
  3. Jellyfin
  4. LazyLibrarian
  5. Lidarr
  6. Netdata
  7. NZBGet
  8. Ombi
  9. Plex
  10. Portainer
  11. qBittorrent
  12. Radarr
  13. Radarr4k
  14. RadarrHDR
  15. RuTorrent
  16. SABnzbd
  17. Sonarr
  18. Sonarr4k
  19. SonarrHDR
  20. Tautulli
  21. JDownloader2
Community Apps [Expand]
  1. AirSonic
  2. Bazarr
  3. Bitwarden
  4. BookSonic
  5. cAdvisor
  6. Cloud Commander
  7. Deluge
  8. DelugeVPN
  9. Dozzle
  10. Duplicati
  11. Filebrowser
  12. FlexGet
  13. Gazee
  14. Headphones
  15. Heimdall
  16. HomeAssistant
  17. jd2-openvpn
  18. Kitana
  19. Logarr
  20. MakeMKV
  21. MariaDB
  22. McMyadmin
  23. MEDUSA
  24. Mellow
  25. Miniflux
  26. Monitorr
  27. Muximux
  28. Mylar
  29. NextCloud
  30. NowShowing
  31. NZBHydra2
  32. Organizr
  33. plpp
  34. pyLoad
  35. qBittorrent
  36. QBittorrent VPN
  37. radarrsyncarr
  38. Resilio
  39. rflood-openvpn
  40. rutorrent-openvpn
  41. Shoko Anime Server
  42. SpeedTest
  43. SyncLounge
  44. Teamspeak3
  45. The Lounge
  46. Transmission
  47. Trakt.or
  48. Ubooquity
  49. Varken
  50. vnc-xfce
  51. vnstat
  52. ZeroTier

Misc Info & Articles

  1. Change Server Time
  2. Fail2Ban
  3. Custom Containers
  4. Deploying Varken, Influx, Telegraf, Grafana
  5. cloneclean commands
  6. Understanding htop
Scripts
  1. Scripting Area
    1. Auto Upload for Sonarr and Lidarr
    2. Auto Delete Log
    3. Plex Plugin DB Backup
    4. Plex fast BACKUP
    5. Delete All Unmonitored from Radarr
Clone this wiki locally