Plex-Meta-Manager/docs/defaults/show/franchise.md

140 lines
22 KiB
Markdown
Raw Normal View History

2022-10-13 06:40:29 +00:00
# Franchise Collections
2022-10-13 06:40:29 +00:00
The `franchise` Default Metadata File is used to create collections based on popular TV Show franchises, and can be used as a replacement to the TMDb Collections that Plex creates out-of-the-box.
Unlike most Default Metadata Files, Franchise works by placing collections inline with the main library items if your library allows it. For example, the "Pretty Little Liars" franchise collection will appear next to the "Pretty Little Liars" show in your library so that you have easy access to the other shows in the franchise.
**This file has a Movie Library [Counterpart](../movie/franchise).**
![](../images/showfranchise.png)
## Requirements & Recommendations
Supported Library Types: Show
2022-10-13 06:40:29 +00:00
## Collections
2022-11-16 14:30:04 +00:00
| Collection | Key | Description |
|:------------------------------------------------------------|:----------------------------------------------------|:---------------------------------------------------|
2022-10-13 06:40:29 +00:00
| `<<Collection Name>>`<br>**Example:** `Pretty Little Liars` | `<<Starting TMDb Show ID>>`<br>**Example:** `31917` | Collection of Shows specified for this Collection. |
## Config
2022-09-27 22:01:34 +00:00
The below YAML in your config.yml will create the collections:
2022-10-13 06:40:29 +00:00
```yaml
libraries:
2022-10-13 06:40:29 +00:00
TV Shows:
metadata_path:
2022-10-13 06:40:29 +00:00
- pmm: franchise
```
## Template Variables
2022-10-13 06:40:29 +00:00
Template Variables can be used to manipulate the file in various ways to slightly change how it works without having to make your own local copy.
2023-01-04 19:46:04 +00:00
Note that the `template_variables:` section only needs to be used if you do want to actually change how the defaults work. Any value not specified is its default value if it has one if not it's just ignored.
2022-10-13 06:40:29 +00:00
2022-11-08 03:02:07 +00:00
**[Shared Collection Variables](../collection_variables) are NOT available to this default file.**
2022-10-18 20:54:28 +00:00
| Variable | Description & Values |
|:-----------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
2022-10-17 12:13:48 +00:00
| `summary_<<key>>`<sup>1</sup> | **Description:** Changes the summary of the specified key's collection.<br>**Values:** New Collection Summary |
2022-10-18 20:54:28 +00:00
| `collection_section` | **Description:** Adds a sort title with this collection sections.<br>**Values:** Any number |
2022-10-17 12:13:48 +00:00
| `order_<<key>>`<sup>1</sup> | **Description:** Controls the sort order of the collections in their collection section.<br>**Values:** Any number |
2022-10-18 20:54:28 +00:00
| `collection_mode` | **Description:** Controls the collection mode of all collections in this file.<br>**Values:**<table class="clearTable"><tr><td>`default`</td><td>Library default</td></tr><tr><td>`hide`</td><td>Hide Collection</td></tr><tr><td>`hide_items`</td><td>Hide Items in this Collection</td></tr><tr><td>`show_items`</td><td>Show this Collection and its Items</td></tr></table> |
| `minimum_items` | **Description:** Controls the minimum items that the collection must have to be created.<br>**Default:** `2`<br>**Values:** Any number |
2022-10-17 12:13:48 +00:00
| `name_mapping_<<key>>`<sup>1</sup> | **Description:** Sets the name mapping value for using assets of the specified key's collection.<br>**Values:** Any String |
2022-10-18 20:54:28 +00:00
| `sort_title` | **Description:** Sets the sort title for all collections. Use `<<collection_name>>` to use the collection name. **Example:** `"!02_<<collection_name>>"`<br>**Values:** Any String with `<<collection_name>>` |
2022-10-17 12:13:48 +00:00
| `sort_title_<<key>>`<sup>1</sup> | **Description:** Sets the sort title of the specified key's collection.<br>**Default:** `sort_title`<br>**Values:** Any String |
2022-10-18 20:54:28 +00:00
| `build_collection` | **Description:** Controls if you want the collection to actually be built. i.e. you may just want these shows sent to Sonarr.<br>**Values:** `false` to not build the collection |
2022-12-09 16:30:18 +00:00
| `sync_mode` | **Description:** Changes the Sync Mode for all collections in a Defaults file.<br>**Default:** `sync`<br>**Values:**<table class="clearTable"><tr><td>`sync`</td><td>Add and Remove Items based on Builders</td></tr><tr><td>`append`</td><td>Only Add Items based on Builders</td></tr></table> |
| `sync_mode_<<key>>`<sup>1</sup> | **Description:** Changes the Sync Mode of the specified key's collection.<br>**Default:** `sync_mode`<br>**Values:**<table class="clearTable"><tr><td>`sync`</td><td>Add and Remove Items based on Builders</td></tr><tr><td>`append`</td><td>Only Add Items based on Builders</td></tr></table> |
2022-10-18 20:54:28 +00:00
| `collection_order` | **Description:** Changes the Collection Order for all collections in this file.<br>**Values:**<table class="clearTable"><tr><td>`release`</td><td>Order Collection by Release Dates</td></tr><tr><td>`alpha`</td><td>Order Collection Alphabetically</td></tr><tr><td>`custom`</td><td>Order Collection Via the Builder Order</td></tr><tr><td>[Any `plex_search` Sort Option](../../metadata/builders/plex.md#sort-options)</td><td>Order Collection by any `plex_search` Sort Option</td></tr></table> |
2022-10-17 12:13:48 +00:00
| `collection_order_<<key>>`<sup>1</sup> | **Description:** Changes the Collection Order of the specified key's collection.<br>**Default:** `collection_order`<br>**Values:**<table class="clearTable"><tr><td>`release`</td><td>Order Collection by Release Dates</td></tr><tr><td>`alpha`</td><td>Order Collection Alphabetically</td></tr><tr><td>`custom`</td><td>Order Collection Via the Builder Order</td></tr><tr><td>[Any `plex_search` Sort Option](../../metadata/builders/plex.md#sort-options)</td><td>Order Collection by any `plex_search` Sort Option</td></tr></table> |
2022-10-18 20:54:28 +00:00
| `exclude` | **Description:** Exclude these Collections from creating a Dynamic Collection.<br>**Values:** List of Collection IDs |
| `data` | **Description:** Overrides the [default data dictionary](#default-data). Defines the data that the custom dynamic collection processes.<br>**Values:** Dictionary List of TMDb Main Show ID |
| `append_data` | **Description:** Appends to the [default data dictionary](#default-data).<br>**Values:** Dictionary List of TMDb Main Show ID |
| `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex<br>**Values:** Dictionary List of TMDb Show IDs |
| `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).<br>**Values:** Dictionary List of TMDb Show IDs |
| `remove_addons` | **Description:** Removes from the [default addons dictionary](#default-addons).<br>**Values:** Dictionary List of TMDb Show IDs |
2022-10-18 20:54:28 +00:00
| `sonarr_add_missing` | **Description:** Override Sonarr `add_missing` attribute for all collections in a Defaults file.<br>**Values:** `true` or `false` |
2022-10-17 12:13:48 +00:00
| `sonarr_add_missing_<<key>>`<sup>1</sup> | **Description:** Override Sonarr `add_missing` attribute of the specified key's collection.<br>**Default:** `sonarr_add_missing`<br>**Values:** `true` or `false` |
2022-10-18 20:54:28 +00:00
| `sonarr_folder` | **Description:** Override Sonarr `root_folder_path` attribute for all collections in a Defaults file.<br>**Values:** Folder Path |
2022-10-17 12:13:48 +00:00
| `sonarr_folder_<<key>>`<sup>1</sup> | **Description:** Override Sonarr `root_folder_path` attribute of the specified key's collection.<br>**Default:** `sonarr_folder`<br>**Values:** Folder Path |
2022-10-18 20:54:28 +00:00
| `sonarr_tag` | **Description:** Override Sonarr `tag` attribute for all collections in a Defaults file.<br>**Values:** List or comma-separated string of tags |
2022-10-17 12:13:48 +00:00
| `sonarr_tag_<<key>>`<sup>1</sup> | **Description:** Override Sonarr `tag` attribute of the specified key's collection.<br>**Default:** `sonarr_tag`<br>**Values:** List or comma-separated string of tags |
2022-10-18 20:54:28 +00:00
| `item_sonarr_tag` | **Description:** Used to append a tag in Sonarr for every show found by the builders that's in Sonarr for all collections in a Defaults file.<br>**Values:** List or comma-separated string of tags |
2022-10-17 12:13:48 +00:00
| `item_sonarr_tag_<<key>>`<sup>1</sup> | **Description:** Used to append a tag in Sonarr for every show found by the builders that's in Sonarr of the specified key's collection.<br>**Default:** `item_sonarr_tag`<br>**Values:** List or comma-separated string of tags |
1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<<key>>` with when calling.
2022-10-08 16:31:06 +00:00
The below is an example config.yml extract with some Template Variables added in to change how the file works.
```yaml
libraries:
2022-10-13 06:40:29 +00:00
TV Shows:
metadata_path:
2022-10-13 06:40:29 +00:00
- pmm: franchise
template_variables:
append_data:
"31917": Pretty Little Liars
append_addons:
31917: [46958, 79863, 110531] # Pretty Little Liars: Ravenswood, The Perfectionists, Original Sin
sonarr_add_missing: true
```
2022-12-11 19:35:51 +00:00
## Default values
These are lists provided for reference to show what values will be in use if you do no customization. If you want to customize these values, use the methods described above. These do not show how to change a name or a list.
### Default `data`
2022-10-13 06:40:29 +00:00
```yaml
data:
"121": Doctor Who
2023-03-23 18:17:18 +00:00
"253": Star Trek
"549": Law & Order
"951": Archie Comics
2022-10-13 06:40:29 +00:00
"1402": The Walking Dead
2023-03-23 18:17:18 +00:00
"1412": Arrowverse
2022-10-13 06:40:29 +00:00
"1431": CSI
2023-03-23 18:17:18 +00:00
"4614": NCIS
"4629": Stargate
"8514": "RuPaul's Drag Race"
2022-10-13 06:40:29 +00:00
"6357": The Twilight Zone
2023-03-23 18:17:18 +00:00
"10222": The Real Housewives
"31917": Pretty Little Liars
"44006": One Chicago
"73586": Yellowstone
"75219": 9-1-1
"79744": The Rookie
"80748": FBI
"85536": Star Wars
2022-10-13 06:40:29 +00:00
```
2022-12-11 19:35:51 +00:00
### Default `addons`
2022-10-13 06:40:29 +00:00
```yaml
addons:
121: [57243, 1057, 424, 203, 64073] # Doctor Who: K-9 & Company, Torchwood, The Sarah Jane Adventures, Class
2023-03-23 18:17:18 +00:00
253: [655, 1855, 314, 67198, 85949, 85948] # Star Trek, The Next Generation, Voyager, Enterprise, Discovery, Picard, Lower Decks
549: [2734, 4601, 3357, 32632, 72496, 157088, 106158] # Law & Order: Special Victims Unit, Criminal Intent, Trial by Jury, LA, True Crime, Organized Crime
951: [25641, 4489, 24211, 9829, 605, 69050, 79242, 87539] # The Archie Show, Sabrina, The Teenage Witch, Josie and the Pussycats, Josie and the Pussycats in Outer Space, The New Archies, Riverdale, Chilling Adventures of Sabrina, Katy Keene
2022-10-13 06:40:29 +00:00
1402: [62286, 94305] # The Walking Dead: Fear the Walking Dead, World Beyond
2023-03-23 18:17:18 +00:00
1412: [60735, 62688, 62643, 71663, 89247] # Arrow: The Flash, Supergirl, Legends of Tomorrow, Black Lightning, Batwoman
1431: [1620, 2458, 122194, 61811] # CSI: Miami, NY, Vegas, Cyber
4614: [17610, 124271, 61387, 4376] # NCIS: Los Angeles, Hawaii, New Orleans, JAG
2022-10-13 06:40:29 +00:00
4629: [2290, 5148, 72925] # Stargate SG-1: Atlantis, Universe, Origins
2023-03-23 18:17:18 +00:00
8514: [200870, 212798, 38409, 200865, 67482, 124045, 216276, 77233, 92611, 98888, 94038, 127841, 67564, 122692, 139203, 203734, 108934, 204701, 210689, 155431, 106475, 152261, 66769] #Drag Race: Sweden, Sweden Untucked, Untucked, Belgium, All-Stars, Spain, Brazil, Thailand, UK, Secret Celebrity, Canada, Italy, All Stars Untucked, Australia, Philippines, Canada VS the World, Holland, Philippines Untucked, Spain Untucked, UK VS the World, Vegas Revue, France, Ruvealed
2022-10-13 06:40:29 +00:00
6357: [1918, 83135, 16399] # The Twilight Zone (multiple)
2023-03-23 18:17:18 +00:00
10222: [34268, 32390, 17380, 18204, 65300, 10222, 31493, 217065, 14808, 136105, 61868, 39283, 62087, 76474, 70612, 110381, 70463, 67480, 196592, 139703, 126149, 59556, 113333, 214463, 131449, 216849] # Real Housewives of Orange County: Miami, BH, ATL, NJ, Potomac, DC, Capetown, NYC, Ult. Girls Trip, Cheshire, Dallas, Melbourne, Hungary, Toronto, SLC, Sydney, Auckland, Dubai, ATL Porshas Family Matters, Johannesburg, Vancouver, Jersey, Amsterdam, Durban, Cheshire Christmas Cruising
31917: [46958, 79863, 110531] # Pretty Little Liars: Ravenswood, The Perfectionists, Original Sin
44006: [58841, 62650, 67993] # Chicago Fire: Med, PD, Justice
73586: [157744, 118357, 157732] #Yellowstone: 1883, 1923, 1883: The Bass Reeves Story
75219: 89393 # 9-1-1: 9-1-1 Lone Star
79744: 201992 # The Rookie: Feds
80748: [94372, 121658] # FBI: Most Wanted, International
85536: [71412, 3478, 105971, 92830, 83867, 60554, 82856, 115036, 114461, 202879, 114462, 114476, 114478, 79093] # Star Wars Galaxy of Adventures: Forces of Destiny, The Clone Wars, The Bad Batch, Obi-Wan Kenobi, Andor, Rebels, The Mandalorian, The Book of Boba Fett, Ahsoka, Skeleton Crew, Rangers of the New Republic, Lando, Visions, Resistance
2022-10-13 06:40:29 +00:00
```