A maintained fork of Plex Autoscan
Plex Autoscan is a python script that assists in the importing of Sonarr, Radarr, and Lidarr downloads into Plex Media Server.
It does this by creating a web server to accept webhook requests from these apps, and in turn, sends a scan request to Plex. Plex will then only scan the parent folder (i.e. season folder for TV shows, movie folder for movies, and album folders for music) of the media file (versus scanning the entire library folder).
In addition to the above, Plex Autoscan can also monitor Google Drive for updates. When a new file is detected, it is checked against the Plex database and if this file is missing, a new scan request is sent to Plex (see section below).
Plex Autoscan is installed on the same server as the Plex Media Server.
- Ubuntu/Debian
- Python 3.8 or higher (
sudo apt install python3 python3-pip). - requirements.txt modules (see below).
cd /optgit clone https://github.com/by275/plex_autoscancd plex_autoscansudo python -m pip install -r requirements.txtpython3 -m autoscan sections- Run once to generate a defaultconfig.jsonfile./opt/plex_autoscan/config.json- Configure settings (do this before moving on).sudo cp /opt/plex_autoscan/system/autoscan.service /etc/systemd/system/sudo systemctl daemon-reloadsudo systemctl enable autoscan.servicesudo systemctl start autoscan.service
New in v0.1.0
With a recent version of pip and git, it can be installed by
python3 -m pip install git+https://github.com/by275/plex_autoscan.gitand run with autoscan. Tags/Branches/Hashes can be specified like this:
python3 -m pip install git+https://github.com/by275/plex_autoscan.git@v0.1.0
python3 -m pip install git+https://github.com/by275/plex_autoscan.git@featPlease find more details here.
Setup instructions to connect Sonarr/Radarr/Lidarr to Plex Autoscan.
-
Sonarr -> "Settings" -> "Connect".
-
Add a new "Webhook".
-
Add the following:
-
Name: Plex Autoscan
-
On Grab:
No -
On Download:
Yes -
On Upgrade:
Yes -
On Rename:
Yes -
Filter Series Tags: Leave Blank
-
URL: Your Plex Autoscan Webhook URL
-
Method:
POST -
Username: Leave Blank
-
Password: Leave Blank
-
-
The settings will look like this:
-
Click "Save" to add Plex Autoscan.
-
Radarr -> "Settings" -> "Connect".
-
Add a new "Webhook".
-
Add the following:
-
Name: Plex Autoscan
-
On Grab:
No -
On Download:
Yes -
On Upgrade:
Yes -
On Rename:
Yes -
Filter Movie Tags: Leave Blank
-
URL: Your Plex Autoscan Webhook URL
-
Method:
POST -
Username: Leave Blank
-
Password: Leave Blank
-
-
The settings will look like this:
-
Click "Save" to add Plex Autoscan.
-
Lidarr -> "Settings" -> "Connect".
-
Add a new "Webhook" Notification.
-
Add the following:
-
Name: Plex Autoscan
-
On Grab:
No -
On Album Import:
No -
On Track Import:
Yes -
On Track Upgrade:
Yes -
On Rename:
Yes -
Tags: Leave Blank
-
URL: Your Plex Autoscan Webhook URL
-
Method:
POST -
Username: Leave Blank
-
Password: Leave Blank
-
-
The settings will look like this:
-
Click "Save" to add Plex Autoscan.


