You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
154 lines
8.6 KiB
154 lines
8.6 KiB
3 years ago
|
# Playlist Files
|
||
|
|
||
|
Playlist files are used to create and maintain playlists on the Plex Server.
|
||
|
|
||
1 year ago
|
If utilized to their fullest, these files can be used to maintain the entire server's collections and playlists, and can
|
||
|
be used as a backup for these in the event of a restore requirement.
|
||
3 years ago
|
|
||
1 year ago
|
???+ tip
|
||
|
|
||
1 year ago
|
Playlists are defined in one or more Playlist files that are mapped in the
|
||
|
[Playlist Files Attribute](../config/playlists.md) within the Configuration File.
|
||
3 years ago
|
|
||
1 year ago
|
You can use the [`playlist_report` setting](../config/settings.md) to get a list of your playlists printed out in your
|
||
|
log.
|
||
3 years ago
|
|
||
1 year ago
|
## Example
|
||
|
|
||
1 year ago
|
This example is a Playlist file with a basic overlay which is saved in a file called `MyPlaylists.yml` within the
|
||
|
location mapped as `config` in my setup.
|
||
1 year ago
|
|
||
1 year ago
|
|
||
1 year ago
|
???+ example "Example "MyPlaylists.yml""
|
||
1 year ago
|
|
||
1 year ago
|
Click the :fontawesome-solid-circle-plus: icon to learn more
|
||
|
|
||
|
```yaml
|
||
|
collections: #(1)!
|
||
|
Top 50 Grossing Films of All Time (Worldwide):
|
||
|
tmdb_list: 10 #(2)!
|
||
|
collection_order: custom #(3)!
|
||
|
sync_mode: sync #(4)!
|
||
|
```
|
||
|
|
||
|
1. This must appear once and **only once** in any Metadata file
|
||
|
2. This creates a collection based on tmdb list ID 10, https://www.themoviedb.org/list/10 would also be accepted
|
||
|
3. This will sort the items in the Plex collection to be the same as the order in the list
|
||
1 year ago
|
4. Syncs the collection to the list, so that if an item is added/removed from the list, the same is done to the
|
||
|
collection. Set this to `append` if you only want it to add things and not remove them.
|
||
1 year ago
|
|
||
1 year ago
|
???+ example "config.yml Example Collection File Addition"
|
||
1 year ago
|
|
||
|
Click the :fontawesome-solid-circle-plus: icon to learn more
|
||
1 year ago
|
|
||
|
```yaml
|
||
1 year ago
|
playlists: #(1)!
|
||
1 year ago
|
Marvel Cinematic Universe Chronological Order:
|
||
|
sync_mode: sync
|
||
1 year ago
|
libraries: Movies, TV Shows #(2)!
|
||
|
sync_to_users: User1, someone@somewhere.com, User3 #(3)!
|
||
|
trakt_list: https://trakt.tv/users/donxy/lists/marvel-cinematic-universe
|
||
1 year ago
|
summary: Marvel Cinematic Universe In Chronological Order
|
||
|
```
|
||
|
|
||
1 year ago
|
1. This must appear once and **only once** in any Playlist file
|
||
|
2. These libraries must exist in your Plex library
|
||
|
3. Leave this blank if you only only want the Playlist to sync to the server owner's account
|
||
|
|
||
1 year ago
|
This file would then be defined in my `config.yml` file as a `playlist_files` item:
|
||
|
|
||
|
???+ warning "Important Note"
|
||
|
|
||
1 year ago
|
Playlist files are not called within the `libraries` section, they are defined at the root identation as you can see
|
||
|
in the below example.
|
||
1 year ago
|
|
||
|
???+ example "config.yml Example Playlists Addition"
|
||
|
|
||
1 year ago
|
Click the :fontawesome-solid-circle-plus: icon to learn more
|
||
|
|
||
1 year ago
|
```yaml
|
||
|
libraries:
|
||
|
Movies:
|
||
|
# Metadata and Overlay files here
|
||
|
TV Shows:
|
||
|
# Metadata and Overlay files here
|
||
1 year ago
|
playlist_files: #(1)!
|
||
|
- file: config/MyPlaylists.yml #(2)!
|
||
1 year ago
|
```
|
||
|
|
||
1 year ago
|
1. Note that Playlist files are not called within the `libraries` section, they are defined at the root identation
|
||
|
as you can see here
|
||
1 year ago
|
2. `config` refers to the location that you mapped to `config` when following the PMM Installation Guides.
|
||
|
|
||
1 year ago
|
## Playlist Attributes
|
||
|
|
||
|
Plex Meta Manager can automatically build and update playlists defined within the `playlists` attribute.
|
||
|
|
||
3 years ago
|
These are the attributes which can be utilized within the Playlist File:
|
||
|
|
||
1 year ago
|
| Attribute | Description |
|
||
|
|:--------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------|
|
||
|
| [`templates`](templates.md) | contains definitions of templates that can be leveraged by multiple playlists |
|
||
|
| [`external_templates`](templates.md#external-templates) | contains [file blocks](../config/files.md) that point to external templates that can be leveraged by multiple playlists |
|
||
|
| [`playlists`](#playlist-attributes) | contains definitions of playlists you wish to add to the server |
|
||
3 years ago
|
|
||
|
* `playlists` is required in order to run the Playlist File.
|
||
1 year ago
|
* You can find example Playlist Files in the
|
||
|
[Plex Meta Manager Configs Repository](https://github.com/meisnate12/Plex-Meta-Manager-Configs/tree/master/PMM)
|
||
|
* Plex does not support the "Continue Watching" feature for playlists, you can
|
||
|
[vote for the feature here](https://forums.plex.tv/t/playlists-remember-position-for-subsequent-resume/84866/39)
|
||
3 years ago
|
|
||
|
|
||
1 year ago
|
Each playlist requires its own section within the `playlists` attribute and unlike collections, playlists can only be
|
||
|
built using one Builder as their ordering is inherited from the builder; it is not possible to combine builders.
|
||
3 years ago
|
|
||
|
```yaml
|
||
|
playlists:
|
||
|
Marvel Cinematic Universe Chronological Order:
|
||
|
# ... builder, details, and filters for this playlist
|
||
|
Star Wars Clone Wars Chronological Order:
|
||
|
# ... builder, details, and filters for this playlist
|
||
|
etc:
|
||
|
# ... builder, details, and filters for this playlist
|
||
|
```
|
||
|
|
||
2 years ago
|
There are multiple types of attributes that can be utilized within a playlist:
|
||
|
|
||
1 year ago
|
* [Builders](builders/overview.md)
|
||
1 year ago
|
* [Filters](filters.md)
|
||
1 year ago
|
* [Settings](settings.md)
|
||
|
* [Radarr/Sonarr Settings](settings.md)
|
||
|
* [Collection/Playlist Metadata Updates](updates.md)
|
||
|
* [Item Metadata Updates](item_updates.md)
|
||
2 years ago
|
|
||
3 years ago
|
### Special Playlist Attributes
|
||
3 years ago
|
|
||
1 year ago
|
| Attribute | Description | Required |
|
||
|
|:------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------:|
|
||
|
| `libraries` | Determine which libraries the playlist will be built from.<br>**Options:** Comma-separated string or list of library mapping names defined in the `libraries` attribute in the base of your [Configuration File](../overview.md. | :fontawesome-solid-circle-check:{ .green } |
|
||
|
| `sync_to_users` | Determine which Users have the playlist synced.<br>This will override the global [`playlist_sync_to_users` Setting](../config/settings.md).<br>**Options:** Comma-separated string or list of users, `all` for every user who has server access, or leave blank for just the server owner. | :fontawesome-solid-circle-xmark:{ .red } |
|
||
|
| `exclude_users` | Determine which Users will be excluded from having the playlist synced.<br>This will override the global [`playlist_excude_users` Setting](../config/settings.md).<br>**Options:** Comma-separated string or list of users, `all` for every user who has server access, or leave blank for just the server owner. | :fontawesome-solid-circle-xmark:{ .red } |
|
||
|
| `delete_playlist` | Will delete this playlist for the users defined by sync_to_users.<br>**Options:** `true` or `false` | :fontawesome-solid-circle-xmark:{ .red } |
|
||
3 years ago
|
|
||
|
* Any defined playlist will be always be visible by The Plex Media Server owner, so it doesn't need to be defined within `sync_to_users`.
|
||
3 years ago
|
|
||
1 year ago
|
## Example Playlists
|
||
3 years ago
|
|
||
1 year ago
|
In the following example, media is pulled from the `Movies` and `TV Shows` libraries into the one Playlist, and the
|
||
|
playlist is shared with a specific set of users:
|
||
3 years ago
|
|
||
|
```yaml
|
||
|
playlists:
|
||
|
Marvel Cinematic Universe Chronological Order:
|
||
|
sync_mode: sync
|
||
|
libraries: Movies, TV Shows
|
||
|
sync_to_users: User1, someone@somewhere.com, User3
|
||
|
trakt_list: https://trakt.tv/users/donxy/lists/marvel-cinematic-universe?sort=rank,asc
|
||
|
summary: Marvel Cinematic Universe In Chronological Order
|
||
|
Star Wars Clone Wars Chronological Order:
|
||
|
sync_to_users: all
|
||
|
sync_mode: sync
|
||
|
libraries: Movies, TV Shows
|
||
|
trakt_list: https://trakt.tv/users/tomfin46/lists/star-wars-the-clone-wars-chronological-episode-order
|
||
|
```
|