Skip to content

Plex Autoscan Config Section Mappings DEPRECATED

desimaniac edited this page Dec 27, 2019 · 1 revision

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.

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 (Choose only one of these)
  3. Settings
  4. Preinstall (Choose only one of these)
  5. SSH
  6. Ansible Vault
  7. Rclone
  8. Cloudbox (Choose only one of these)
  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
  10. Next Steps

Install Feederbox / Mediabox

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

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

Recommended Reading

Backup and Restore

More Information

Advanced Configuration

Experimental

Extras

Misc

Community-Submitted

See Community Wiki.

Reference

Troubleshooting

Links

Clone this wiki locally