Plex-Meta-Manager/docs/metadata/playlist.md
2022-05-07 11:46:57 -04:00

5.2 KiB

Playlist Files

Playlist files are used to create and maintain playlists on the Plex Server.

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.

Playlists are defined in one or more Playlist files that are mapped in the Playlist Files Attribute within the Configuration File.

These are the attributes which can be utilized within the Playlist File:

Attribute Description
templates contains definitions of templates that can be leveraged by multiple playlists
external_templates contains path types that point to external templates that can be leveraged by multiple playlists
playlists contains definitions of playlists you wish to add to the server

Playlist Attributes

Plex Meta Manager can automatically build and update playlists defined within the playlists attribute.

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.

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

Playlists require the libraries attribute, which instructs the operation to look in the specified libraries. This allows media to be combined from multiple libraries into one playlist. The mappings that you define in the libraries attribute must match the library names in your Configuration File.

The playlist can also use the sync_to_users attributes to control who has visibility of the playlist. This will override the global playlist_sync_to_users Setting. sync_to_users can be set to all to sync to all users who have access to the Plex Media Server, or a list/comma-separated string of users. The Plex Media Server owner will always have visibility of the Playlists, so does not need to be defined within the attribute. Leaving sync_to_users empty will make the playlist visible to the Plex Media Server owner only.

There are three types of attributes that can be utilized within a playlist:

Builders

Builders use third-party services to source items to be added to the playlist. Multiple builders can be used in the same playlist from a variety of sources listed below.

Details

These can alter any aspect of the playlist or the media items within them.

Filters

These filter media items added to the playlist by any of the Builders.

Example

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:

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