Plex Autoscan Config Section Mappings DEPRECATED
Note: The following instructions have been replaced with the update_sections
command.
You are going to need to retrieve the section IDs for all these libraries you added (which may or may not be in order).
To get the Section IDs, go here.
For our example, it would look like this:
2018-12-04 05:21:39,590 - INFO - PLEX [140360038001904]: Using Plex Scanner
4: Anime
5: Foreign Films
6: Movies for Kids
1: Movies
3: Movies 4K
2: TV Shows
Note: TV Shows has the section ID of 2 because it was added second, after Movies, during initial setup.
Note: For Mediabox / Feederbox setup, the following steps will be done on the Mediabox.
-
Open the Plex Autoscan Config file in your favorite editor (e.g. nano).
nano /opt/plex_autoscan/config/config.json
-
Scroll down to the
PLEX_SECTION_PATH_MAPPINGS
section.-
Under this section, you will need to add your section IDs and the library paths (as they appear in Plex).
The format will look like:
"SECTION_NUMBER": [ "/data/Movies/<folderpath>/" ],
Note 1: Make sure the folder paths are within quotes (e.g.
"/Movies/"
) and there is a comma (,
) after the close bracket (]
) - all except the last one (see example below).Note 2: Since folders ARE case sensitive, make sure the folder path matches the same case as the folders you created in Google Drive (e.g.
"/Movies/Movies-4K/"
is NOT the same as"/Movies/Movies4k/"
). -
After the changes, the section will now look similar to this:
"PLEX_SECTION_PATH_MAPPINGS": { "1": [ "/data/Movies/Movies/" ], "2": [ "/data/TV/" ], "3": [ "/data/Movies/4K/" ], "3": [ "/data/Movies/Foreign/" ], "4": [ "/data/Movies/Hollywood/" ], "5": [ "/Movies/Kids/" ], "6": [ "/TV/" ], "7": [ "/Music/" ] },
-
-
Ctrl + X Y Enter to save.
-
Restart Plex Autoscan:
sudo systemctl restart plex_autoscan
Note: Do not modify SERVER_PATH_MAPPINGS
as this does not require any changes.
You are going to need to retrieve the section IDs for all these libraries you added (which may or may not be in order).
To get the Section IDs, go here.
For our example, it would look like this:
2018-12-04 05:21:39,590 - INFO - PLEX [140360038001904]: Using Plex Scanner
4: Anime
5: Foreign Films
6: Movies for Kids
1: Movies
3: Movies 4K
2: TV Shows
Note: TV Shows has the section ID of 2 because it was added second, after Movies, during initial setup.
Note: For Mediabox / Feederbox setup, this will be done on the Mediabox.
-
On the server's shell, run the following command:
nano /opt/plex_autoscan/config/config.json
-
Scroll down to the
PLEX_SECTION_PATH_MAPPINGS
section.-
Under this section, you will need to add your section IDs and the library paths (as located within the
/Media
folder in Google Drive).The format will look like:
"SECTION_NUMBER": [ "/<folder>/" ],
Note 1: Make sure the folder paths are within quotes (e.g.
"/Movies-3D"
) and there is a comma (,
) after the close bracket (]
) - all except the last one (see example below).Note 2: Since folders are case sensitive, make sure the folder path matches the same case as the folders you created in Google Drive (e.g.
"/Movies-4K"
is not the same as"/Movies-4k"
). -
After the changes, the section will now look similar to this:
"PLEX_SECTION_PATH_MAPPINGS": { "1": [ "/Movies-3D/" ], "2": [ "/Movies-4K/" ], "3": [ "/Movies-Foreign/" ], "4": [ "/Movies-Hollywood/" ], "5": [ "/Movies-Kids/" ], "6": [ "/TV/" ], "7": [ "/Music/" ] },
-
-
Ctrl + X Y Enter to save.
-
Restart Plex Autoscan:
sudo systemctl restart plex_autoscan
Note: Do not modify SERVER_PATH_MAPPINGS
as this does not require any changes.
- Overview
- Presumptions
- Server
- Domain Name
- Cloudflare
- Cloud Storage
- Plex / Emby - Account
- Usenet vs. BitTorrent
Cloudbox
- Overview
- Dependencies (Choose only one of these)
- Settings
- Preinstall (Choose only one of these)
- SSH
- Ansible Vault
- Rclone
- Cloudbox (Choose only one of these)
- Application Setup
- Next Steps
Feederbox (do this first)
- Overview
- Dependencies
- Settings
- Preinstall
- SSH
- Ansible Vault
- Rclone
- Feederbox (Choose only one of these)
- Application Setup
- Next Steps
Mediabox
- Overview
- Dependencies
- Settings
- Preinstall
- SSH
- Ansible Vault
- Rclone
- Mediabox (Choose only one of these)
- Application Setup
- Next Steps
- Cloudplow (Media Uploader)
- cb utility script (Develop branch only}
- Updating Cloudbox (Choose only one of these)
- Updating Cloudbox Apps
- Removing Cloudbox Apps
- Resetting Cloudbox Apps
- Migrating Cloudbox
- Settings Updater
- Ansible Vault Primer
- Plex Access Token
- Plex Autoscan Extras
- Pushover
- Google Drive API Client ID and Client Secret
- Useful Docker Commands
- Add Your Own Docker Container into Cloudbox
- Revoking SSL Certificates
- Feeder Mount
- Adding a Subdomain
- HTTP Auth Support
- Emby
- Nextcloud
- Resilio Sync
- Plex DupeFinder
- Heimdall
- NZBHydra v1
- Plex Requests
- Sickbeard MP4 Automator
- SABnzbd
- Traktarr
See Community Wiki.