Skip to content

Customizing Plex Libraries

desimaniac edited this page Nov 13, 2019 · 193 revisions

Intro

Basics

In the default Cloudbox install, there only two main Plex libraries: one for Movies and one for TV Shows.

The idea being that all movies are to be placed within the /Media/Movies folder in Google Drive. and all TV shows under /Media/TV.

Default Paths:

Media
├── Movies
├── Music
└── TV

If you would like to have custom libraries in Plex, you may do so with this guide.

But regardless of whatever scenario you choose below, the media folders will ALWAYS be located within the Media folder (/Media/ on Google Drive and /mnt/unionfs/Media/ on the server).

Scenarios

  • Adding folders (i.e. libraries) directly under Media/Movies/ (or Media/TV/) (i.e. the standard paths) → Scenario 1. This is the recommended option.

  • Adding folders (i.e. libraries) directly under Media/Scenario 2.

Example

Here is a simplified version of my library setup, which is based on Scenario 1.

Media
├── Movies
│   ├── Movies
│   ├── Movies-4K
│   ├── Movies-Anime
│   └── Movies-Kids
├── Music
└── TV
    ├── TV
    └── TV-4K
  • The general location movies in this example is /Movies/Movies.

    Note: This can be called anything else, such as /Movies/Movies-Main or /Movies/Movies-All.

  • /Movies/Movies-Kids/ folder is for family rated, animated films.

  • /Movies/Movies-Anime/ folder is for Japanese, animated films.

  • Kids and Anime libraries are generated via Python-PlexLibrary - a script that builds virtual libraries using symlinks that point to the main Movies library path.

Scenario 1

Movie libraries under /Media/Movies.

This setup is recommended over Scenario 2 as it is somewhat user-friendly and requires a lot less setup.

Note: You could do the same to TV shows (i.e. have multiple sub-dirs within TV), but this guide will not go over that. However, the steps are similar to the ones below.

Example:

Media
├── Movies
│   ├── Movies
│   ├── Movies-4K
│   ├── Movies-Anime
│   ├── Movies-Foreign
│   └── Movies-Kids
├── Music
└── TV

1. Create Folders in Google Drive

Let's say you wanted to have separate movie libraries for:

  • General Movies
  • 4K Movies
  • Anime Movies
  • Foreign Movies
  • Movies for Kids

You would first have to create these folders within the /Media/Movies path in Google Drive.

However, the root folder of /Media/Movies will NOT contain anything but these folders.

Note: Remember, folders are case sensitive in Google Drive and in Linux (e.g. 4K and 4k are 2 different folders).

For our example, we will create the following folders in Google Drive:

  • /Media/Movies/Movies*
  • /Media/Movies/Movies-4K
  • /Media/Movies/Movies-Anime
  • /Media/Movies/Movies-Foreign
  • /Media/Movies/Movies-Kids

*Note: This can be called anything else, such as /Media/Movies/Movies-Main or /Media/Movies/Movies-All.

Screenshots:

2. Add Libraries to Plex

You will add each of these folders as separate libraries within Plex (see example). You may name these libraries as whatever you want.

The folders will be located under /data/Movies folder within Plex (see Paths).

In our example, this will be:

  • /data/Movies/Movies*
  • /data/Movies/Movies-4K
  • /data/Movies/Movies-Anime
  • /data/Movies/Movies-Foreign
  • /data/Movies/Movies-Kids

*Note: This can be called anything else, such as /data/Movies-Main or /data/Movies-All.

3. Modify Cloudplow Config

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

Note 2: This is the default setting and may be skipped if you haven't changed it before.

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

    nano /opt/cloudplow/config.json
    
  2. Set the following for remove_empty_dir_depth:

    "remove_empty_dir_depth": 2,
  3. Ctrl + X Y Enter to save.

  4. Restart Cloudplow: sudo systemctl restart cloudplow.

4. Change Root Paths in Radarr

Set your Movie Paths in Radarr to reflect the new sub-dirs (e.g. /movies/3D).

6. Misc

i. Change Root Paths in Plex Requests

Set the default "Root save directory for movies" on the Radarr setup page of Plex Requests (e.g. /movies/3D).


Scenario 2

Movie libraries under /Media.

This setup is not recommended as it requires more config setup than Scenario 1. It also the changing of Sonarr/Radarr root paths and updating of those root paths for existing movies.

Note: You could do the same to TV shows (i.e. have multiple sub-dirs within TV), but this guide will not go over that. However, the steps are similar to the ones below.

Example:

Media
├── Movies
├── Movies-4K
├── Movies-Anime
├── Movies-Foreign
├── Movies-Kids
├── Music
└── TV

Note: You could do the same to TV shows, but this guide will not go over that. However, the steps are similar to the ones below.

1. Create Folders in Google Drive

Let's say you wanted to have separate movie libraries for:

  • General Movies
  • 4K Movies
  • Anime Movies
  • Foreign Movies
  • Movies for Kids

You would first have to create these folders within the /Media/ path in Google Drive.

However, the root folder of /Media/ will NOT contain anything but these folders (and Music and TV folders).

Note: Remember, folders are case sensitive in Google Drive and in Linux (e.g. 4K and 4k are 2 different folders).

For our example, we will create the following folders in Google Drive:

  • /Media/Movies*
  • /Media/Movies-4K
  • /Media/Movies-Anime
  • /Media/Movies-Foreign
  • /Media/Movies-Kids

*Note: This can be called anything else, such as /Media/Movies-Main or /Media/Movies-All.

Screenshot:

2. Add Libraries to Plex

You will add each of these folders as separate libraries within Plex (see example). You may name these libraries as whatever you want.

The folders will be located under /data folder within Plex (see Paths).

In our example, this will be:

  • /data/Movies*
  • /data/Movies-4K
  • /data/Movies-Anime
  • /data/Movies-Foreign
  • /data/Movies-Kids

*Note: This can be called anything else, such as /data/Movies-Main or /data/Movies-All.

3. Modify Plex Autoscan Config

Note: For Mediabox / Feederbox setups, 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 SERVER_PATH_MAPPINGS section.

    1. Under this section, you will need to add library paths (as seen from within Plex) with the corresponding /mnt/unionfs/Media/ path.

      The format will look like:

      "/data/<folder>": [                <----- Plex Library Path
        "/mnt/unionfs/Media/<folder>",   <----- Incoming folder path from webhooks (e.g. Radarr root path)
        "My Drive/Media/<folder>/"       <----- Incoming folder path from Google Drive Monitoring (optional)
      ],
      

      Note: Make sure the folder paths are within quotes (e.g. "/data/Movies/") and there is a comma (,) after the close bracket (]) - all except the last one (see example below).

    2. After the changes, the section will now look similar to this:

      "SERVER_PATH_MAPPINGS": {
        "/data/Movies/": [
          "/mnt/unionfs/Media/Movies/",
          "My Drive/Media/Movies/"
        ],
        "/data/Movies-4K/": [
          "/mnt/unionfs/Media/Movies-4K/",
          "My Drive/Media/Movies-4K/"
        ],
        "/data/Movies-Anime/": [
          "/mnt/unionfs/Media/Movies-Anime/",
          "My Drive/Media/Movies-Anime/"
        ],
        "/data/Movies-Foreign/": [
          "/mnt/unionfs/Media/Movies-Foreign/",
          "My Drive/Media/Movies-Foreign/"
        ],
        "/data/Movies-Kids/": [
          "/mnt/unionfs/Media/Movies-Kids/",
          "My Drive/Media/Movies-Kids/"
        ],
        "/data/TV/": [
          "/tv/",
          "/mnt/unionfs/Media/TV/"
          "My Drive/Media/TV/"
        ],
        "/data/Music/": [
          "/music/",
          "/mnt/unionfs/Media/Music/",
          "My Drive/Media/Music/"
        ]
      },

      Note: There may be paths such as "My Drive/Media/Movies/" filled in for Google Drive monitoring. If you are not planning on using this feature of Plex Autoscan, you can simply ignore them. If you do want to use it, you will then need to tweak the folders to match your Google Drive folder paths. See Plex Autoscan Extras for more info.

  3. Ctrl + X Y Enter to save.

  4. Restart Plex Autoscan: sudo systemctl restart plex_autoscan

4. Modify Cloudplow Config

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

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

    nano /opt/cloudplow/config.json
    
  2. Set the following for remove_empty_dir_depth:

    "remove_empty_dir_depth": 1,
  3. Ctrl + X Y Enter to save.

  4. Restart Cloudplow: sudo systemctl restart cloudplow.

5. Change Root Paths in Radarr

Set your Movie Paths in Radarr to reflect the new sub-dirs (e.g. /mnt/unionfs/Media/Movies-3D).

6. Misc

i. Change Root Paths in Plex Requests

Set the default "Root save directory for movies" on the Radarr setup page of Plex Requests (e.g. /mnt/unionfs/Media/Movies-3D).

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.