Skip to content

Plex Autoscan Config Section Mappings (Archived)

desimaniac edited this page Dec 15, 2018 · 8 revisions

Note: The following instructions have been replaced with the update_sections command.

Scenario 1

1. Retrieve Plex Library Section IDs

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.

2. Update config

Note: For Mediabox / Feederbox setup, the following steps will be done on the Mediabox.

  1. Open the Plex Autoscan Config file in your favorite editor (e.g. nano).

    nano /opt/plex_autoscan/config/config.json
    
  2. Scroll down to the PLEX_SECTION_PATH_MAPPINGS section.

    1. 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/").

    2. 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/"
         ]
      },
  3. Ctrl + X Y Enter to save.

  4. Restart Plex Autoscan: sudo systemctl restart plex_autoscan

Note: Do not modify SERVER_PATH_MAPPINGS as this does not require any changes.

Scenario 2

1. Retrieve Plex Library Section IDs

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.

2. Update config

Note: For Mediabox / Feederbox setup, this will be done on the Mediabox.

  1. On the server's shell, run the following command:

    nano /opt/plex_autoscan/config/config.json
    
  2. Scroll down to the PLEX_SECTION_PATH_MAPPINGS section.

    1. 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").

    2. 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/"
         ]
      },
  3. Ctrl + X Y Enter to save.

  4. Restart Plex Autoscan: sudo systemctl restart plex_autoscan

Note: Do not modify SERVER_PATH_MAPPINGS as this does not require any changes.

Home

Basics

  1. Introduction
  2. Cloudbox Install Types
  3. Cloudbox Paths
  4. Accessing Cloudbox Apps

Prerequisites

  1. Overview
  2. Presumptions
  3. Server
  4. Domain Name
  5. Cloudflare
  6. Cloud Storage
  7. Plex / Emby - Account
  8. Usenet vs. BitTorrent

Install Cloudbox

Cloudbox
  1. Overview
  2. Dependencies
  3. Ansible Vault
  4. Settings
  5. Preinstall
  6. SSH
  7. Rclone
  8. Cloudbox
  9. Application Setup
    1. NZBGet
    2. ruTorrent
    3. NZBHydra2
    4. Jackett
    5. Plex Media Server
    6. Plex Autoscan
    7. Sonarr
    8. Radarr
    9. Lidarr
    10. PlexPy (Tautulli)
    11. Ombi
    12. Portainer
    13. Organizr

Install Mediabox / Feederbox

Feederbox (do this first)
  1. Overview
  2. Dependencies
  3. Ansible Vault
  4. Settings
  5. Preinstall
  6. SSH
  7. Rclone
  8. Feederbox
  9. Application Setup
    1. NZBGet
    2. ruTorrent
    3. NZBHydra2
    4. Jackett
    5. Sonarr
    6. Radarr
    7. Lidarr
    8. Portainer
    9. Organizr

Mediabox
  1. Overview
  2. Dependencies
  3. Ansible Vault
  4. Settings
  5. Preinstall
  6. SSH
  7. Rclone
  8. Mediabox
  9. Application Setup
    1. Feeder Mount
    2. Plex Media Server
    3. Plex Autoscan
    4. PlexPy (Tautulli)
    5. Ombi

Recommended Reading

Backup and Restore

More Information

Advanced Configuration

Experimental

Extras

Docs coming soon for ...

  • Radarr4K
  • Sonarr4K

Misc Guides

Reference

Troubleshooting

Links

Community Project

Clone this wiki locally
You can’t perform that action at this time.