2023-11-06 20:38:00 +00:00
|
|
|
---
|
|
|
|
search:
|
|
|
|
boost: 3
|
|
|
|
---
|
2022-03-08 08:06:22 +00:00
|
|
|
# Plex Attributes
|
|
|
|
|
2022-03-29 15:30:30 +00:00
|
|
|
Configuring [Plex](https://www.plex.tv/) is required in order to connect to your libraries.
|
2022-03-08 08:06:22 +00:00
|
|
|
|
2023-12-31 16:45:00 +00:00
|
|
|
A `plex` mapping can be either in the root of the config file as global mapping for all libraries, or you can specify
|
|
|
|
the `plex` mapping individually per library.
|
2022-03-08 08:06:22 +00:00
|
|
|
|
|
|
|
Below is a `plex` mapping example and the full set of attributes:
|
2023-11-15 11:44:43 +00:00
|
|
|
|
2022-03-08 08:06:22 +00:00
|
|
|
```yaml
|
|
|
|
plex:
|
|
|
|
url: http://192.168.1.12:32400
|
|
|
|
token: ####################
|
|
|
|
timeout: 60
|
2023-08-24 14:40:41 +00:00
|
|
|
db_cache: 4096
|
2022-03-08 08:06:22 +00:00
|
|
|
clean_bundles: true
|
|
|
|
empty_trash: true
|
|
|
|
optimize: false
|
|
|
|
```
|
|
|
|
|
2023-12-13 21:44:44 +00:00
|
|
|
| Attribute | Allowed Values | Default | Required |
|
|
|
|
|:----------------|:------------------------------------------------------------------------|:--------|:------------------------------------------:|
|
|
|
|
| `url` | Plex Server URL<br><strong>Example:</strong> http://192.168.1.12:32400 | N/A | :fontawesome-solid-circle-check:{ .green } |
|
|
|
|
| `token` | Plex Server Authentication Token | N/A | :fontawesome-solid-circle-check:{ .green } |
|
|
|
|
| `timeout` | Plex Server Timeout | 60 | :fontawesome-solid-circle-xmark:{ .red } |
|
|
|
|
| `db_cache` | Plex Server Database Cache Size | None | :fontawesome-solid-circle-xmark:{ .red } |
|
|
|
|
| `clean_bundles` | Runs Clean Bundles on the Server after all Collection Files are run | false | :fontawesome-solid-circle-xmark:{ .red } |
|
|
|
|
| `empty_trash` | Runs Empty Trash on the Server after all Collection Files are run | false | :fontawesome-solid-circle-xmark:{ .red } |
|
|
|
|
| `optimize` | Runs Optimize on the Server after all Collection Files are run | false | :fontawesome-solid-circle-xmark:{ .red } |
|
2022-03-08 08:06:22 +00:00
|
|
|
|
2023-11-15 11:44:43 +00:00
|
|
|
???+ warning
|
|
|
|
|
|
|
|
Do Not Use the Plex Token found in Plex's Preferences.xml file.
|
|
|
|
|
2023-12-31 16:45:00 +00:00
|
|
|
If you need help finding your Plex authentication token, please see Plex's
|
|
|
|
[support article](https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/).
|
2022-06-07 20:42:17 +00:00
|
|
|
|
2023-12-31 16:45:00 +00:00
|
|
|
This script can be run on a remote Plex server, but be sure that the `url` provided is publicly addressable, and it's
|
|
|
|
recommended to use `HTTPS`.
|
2022-03-08 08:06:22 +00:00
|
|
|
|
2022-03-29 15:30:30 +00:00
|
|
|
|
2022-07-16 18:40:44 +00:00
|
|
|
# Multi-Plex Instance Setup:
|
2022-03-29 15:30:30 +00:00
|
|
|
|
2023-12-31 16:45:00 +00:00
|
|
|
The below config.yml extract details how to set up multiple Plex servers within the one PMM instance, in this example
|
|
|
|
there are two plex servers which are receiving the same Collection File:
|
2022-03-29 15:30:30 +00:00
|
|
|
|
|
|
|
```yaml
|
|
|
|
libraries:
|
|
|
|
Movies:
|
2023-12-12 22:03:15 +00:00
|
|
|
collection_files:
|
2022-03-29 15:30:30 +00:00
|
|
|
- file: config/Movies.yml
|
|
|
|
Movies_on_Second_Plex:
|
|
|
|
library_name: Movies
|
2023-12-12 22:03:15 +00:00
|
|
|
collection_files:
|
2022-03-29 15:30:30 +00:00
|
|
|
- file: config/Movies.yml
|
|
|
|
plex:
|
|
|
|
url: http://plex.boing.bong
|
|
|
|
token: SOME_TOKEN
|
|
|
|
timeout: 360
|
2023-08-24 14:40:41 +00:00
|
|
|
db_cache: 8192
|
2022-03-29 15:30:30 +00:00
|
|
|
...
|
|
|
|
plex:
|
|
|
|
url: http://plex.bing.bang
|
|
|
|
token: SOME_TOKEN
|
|
|
|
timeout: 60
|
2023-08-24 14:40:41 +00:00
|
|
|
db_cache: 4096
|
2022-03-29 15:30:30 +00:00
|
|
|
clean_bundles: false
|
|
|
|
empty_trash: false
|
|
|
|
optimize: false
|
|
|
|
...
|
|
|
|
```
|
2022-07-16 18:40:44 +00:00
|
|
|
|
2023-12-31 16:45:00 +00:00
|
|
|
The `plex` instance at the bottom is the "global" plex server. Unless otherwise specified, any connection to plex is
|
|
|
|
assumed to be using that plex server. The first "Movies" library entry is on the global `plex` server.
|
2022-07-16 18:40:44 +00:00
|
|
|
|
2023-12-31 16:45:00 +00:00
|
|
|
The "Movies_on_Second_Plex" library is found on the second plex server. Note that this library has its own plex section
|
|
|
|
that lists the attributes that differ from the global plex instance, namely the `URL`, `token` and `timeout`. The
|
|
|
|
library on the second server is also called "Movies", but since you can't have two keys (in this scenario, libraries)
|
|
|
|
with the same name, it is named Movies_on_Second_Plex in the config.yml, and the `library_name:` attribute contains the
|
|
|
|
name of the library on the actual plex server.
|
2022-07-16 18:40:44 +00:00
|
|
|
|
|
|
|
|