From f71f8692400b2db4fc50f3016e9308f6ad0672d2 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 13 Oct 2022 02:40:29 -0400 Subject: [PATCH] [116] finished franchise wiki update --- README.md | 2 +- VERSION | 2 +- defaults/movie/franchise.yml | 34 ++-------- defaults/show/franchise.yml | 35 ++--------- docs/defaults/movie/franchise.md | 2 +- docs/defaults/show/franchise.md | 103 ++++++++++++++++++++++++++----- docs/home/guides/docker.md | 2 +- docs/home/guides/local.md | 2 +- docs/index.md | 2 +- 9 files changed, 105 insertions(+), 79 deletions(-) diff --git a/README.md b/README.md index dcadeef3..c4fed022 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Plex Meta Manager is an open source Python 3 project that has been designed to e 1. Install Plex Meta Manager; this process is described [here](https://metamanager.wiki/en/latest/home/installation.html). -2. Once installed, you have to create a [Configuration File](https://metamanager.wiki/en/latest/config/configuration.html), which contains URLs and credentials and the like which are used to connect to services like Plex and TMDB. +2. Once installed, you have to create a [Configuration File](https://metamanager.wiki/en/latest/config/configuration.html), which contains URLs and credentials and the like which are used to connect to services like Plex and TMDb. 3. After that you can start updating Metadata and building automatic Collections by creating a [Metadata File](https://metamanager.wiki/en/latest/metadata/metadata.html) for each Library you want to interact with. diff --git a/VERSION b/VERSION index 6c182ab7..3c757cdb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.3-develop115 +1.17.3-develop116 diff --git a/defaults/movie/franchise.yml b/defaults/movie/franchise.yml index d8b5d873..e7574281 100644 --- a/defaults/movie/franchise.yml +++ b/defaults/movie/franchise.yml @@ -1,30 +1,9 @@ -############################################################# -# Franchise Collections # -# Created by Yozora, Bullmoose20, & Sohjiro # -############################################################# -# Call this from your config.yml (Movie only) # -# If nothing is specified these are the defaults # -# # -# metadata_path: # -# - git: PMM/movie/franchise # -# template_variables: # -# # Sets the collection order of the collection # -# collection_order: alpha # -# # Sets the sort title # -# sort_title: "!02_<>" # -# # Sets the minimum items of the collection # -# minimum_items: 2 # -# # Sets whether to actually build the collection # -# build_collection: true # -# # Adds missing from the collection to radarr # -# radarr_add_missing: # -# # Radarr Folder to add to # -# radarr_folder: # -# # Radarr Tag for added missing # -# radarr_tag: # -# # Radarr Tag for existing items # -# item_radarr_tag: # -############################################################# +############################################################################## +# Franchise Collections # +# Created by Yozora, Bullmoose20, & Sohjiro # +# EDITING THIS FILE MAY CAUSE PULLING NEW UPDATES TO FAIL # +# https://metamanager.wiki/en/latest/defaults/movie/franchise.html # +############################################################################## templates: collection: @@ -48,7 +27,6 @@ templates: - name_<> - movie - name_mapping - - sort_title - build_collection - collection_mode - collection_order diff --git a/defaults/show/franchise.yml b/defaults/show/franchise.yml index 539961b0..9bf00a5a 100644 --- a/defaults/show/franchise.yml +++ b/defaults/show/franchise.yml @@ -1,32 +1,9 @@ -############################################################# -# Franchise Collections # -# Created by Yozora, Bullmoose20, & Sohjiro # -############################################################# -# Call this from your config.yml (Show only) # -# If nothing is specified these are the defaults # -# # -# metadata_path: # -# - git: PMM/show/franchise # -# template_variables: # -# # Add Missing Movies to Radarr # -# sonarr_add_missing: true # -# # Sets the collection order of the collection # -# collection_order: release # -# # Sets the sort title # -# sort_title: "!02_<>" # -# # Sets the minimum items of the collection # -# minimum_items: 2 # -# # Sets weather to actually build the collection # -# build_collection: true # -# # Adds missing from the collection to sonarr # -# sonarr_add_missing: # -# # Sonarr Folder to add to # -# sonarr_folder: # -# # Sonarr Tag for added missing # -# sonarr_tag: # -# # Sonarr Tag for existing items # -# item_sonarr_tag: # -############################################################# +############################################################################## + #Franchise Collections # + #Created by Yozora, Bullmoose20, & Sohjiro # + #EDITING THIS FILE MAY CAUSE PULLING NEW UPDATES TO FAIL # + #https://metamanager.wiki/en/latest/defaults/movi/franchise.html # +############################################################################## templates: tmdbshow: diff --git a/docs/defaults/movie/franchise.md b/docs/defaults/movie/franchise.md index 545ccab5..80d45f70 100644 --- a/docs/defaults/movie/franchise.md +++ b/docs/defaults/movie/franchise.md @@ -51,7 +51,7 @@ All [Shared Variables](../variables) are available as well as the additional Var | `title_override` | **Description:** Overrides the [default title_override dictionary](#default-title_override).
**Values:** Dictionary with `key: new_title` entries | | `exclude` | **Description:** Exclude these TMDb Collections from creating a Dynamic Collection.
**Values:** List of TMDb Collection IDs | | `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
**Values:** Dictionary List of TMDb Collection IDs | -| `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of TMDB Collection IDs | +| `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of TMDb Collection IDs | | `radarr_add_missing` | **Description:** Override Radarr `add_missing` attribute for all collections in a Defaults file.
**Values:** `true` or `false` | | `radarr_add_missing_<>` | **Description:** Override Radarr `add_missing` attribute of the specified key's collection.
**Default:** `radarr_add_missing`
**Values:** `true` or `false` | | `radarr_folder` | **Description:** Override Radarr `root_folder_path` attribute for all collections in a Defaults file.
**Values:** Folder Path | diff --git a/docs/defaults/show/franchise.md b/docs/defaults/show/franchise.md index 7db13178..91be99b0 100644 --- a/docs/defaults/show/franchise.md +++ b/docs/defaults/show/franchise.md @@ -1,43 +1,114 @@ -# Franchise Default Metadata File +# Franchise Collections -The `show/franchise` Metadata File is used to create collections based on popular TV franchises +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. -Example Collections Created: +**This file works with TV Libraries, but has a Movie Library [Counterpart](../movie/franchise).** ![](../images/showfranchise.png) +## Collections + +| Collection | Key | Description | +|:------------------------------------------------------------|:---------------------------------------------------:|:---------------------------------------------------| +| `<>`
**Example:** `Pretty Little Liars` | `<>`
**Example:** `31917` | Collection of Shows specified for this Collection. | + +## Config + The below YAML in your config.yml will create the collections: + ```yaml libraries: - Movies: + TV Shows: metadata_path: - - pmm: show/franchise + - pmm: franchise ``` - ## Template Variables -Template Variables can be used to manipulate the file from the default settings which are provided. -Note that the `templates_variables:` section only needs to be used if you do NOT want to use the default settings. +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. -All [Shared Variables](../variables) are available +Note that the `templates_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. + +All [Shared Variables](../variables) are available as well as the additional Variables below which can be used to customize the file. + +| Variable | Description & Values | +|:-----------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `name_<>` | **Description:** Changes the name of the specified key's collection.
**Values:** New Collection Name | +| `summary_<>` | **Description:** Changes the summary of the specified key's collection.
**Values:** New Collection Summary | +| `collection_section` | **Description:** Adds a sort title with this collection sections.
**Values:** Any number | +| `order_<>` | **Description:** Controls the sort order of the collections in their collection section.
**Values:** Any number | +| `collection_mode` | **Description:** Controls the collection mode of all collections in this file.
**Values:**
`default`Library default
`hide`Hide Collection
`hide_items`Hide Items in this Collection
`show_items`Show this Collection and its Items
| +| `minimum_items` | **Description:** Controls the minimum items that the collection must have to be created.
**Default:** `2`
**Values:** Any number | +| `name_mapping_<>` | **Description:** Sets the name mapping value for using assets of the specified key's collection.Overrides the [default name_mapping](#default-name_mapping) for that collection if used.
**Values:** Any String | +| `sort_title` | **Description:** Sets the sort title for all collections. Use `<>` to use the collection name. **Example:** `"!02_<>"`
**Values:** Any String with `<>` | +| `sort_title_<>` | **Description:** Sets the sort title of the specified key's collection.
**Default:** `sort_title`
**Values:** Any String | +| `build_collection` | **Description:** Controls if you want the collection to actually be built. i.e. you may just want these shows sent to Sonarr.
**Values:** `false` to not build the collection | +| `collection_order` | **Description:** Changes the Collection Order for all collections in this file.
**Values:**
`release`Order Collection by Release Dates
`alpha`Order Collection Alphabetically
`custom`Order Collection Via the Builder Order
[Any `plex_search` Sort Option](../../metadata/builders/plex.md#sort-options)Order Collection by any `plex_search` Sort Option
| +| `collection_order_<>` | **Description:** Changes the Collection Order of the specified key's collection.
**Default:** `collection_order`
**Values:**
`release`Order Collection by Release Dates
`alpha`Order Collection Alphabetically
`custom`Order Collection Via the Builder Order
[Any `plex_search` Sort Option](../../metadata/builders/plex.md#sort-options)Order Collection by any `plex_search` Sort Option
| +| `exclude` | **Description:** Exclude these Collections from creating a Dynamic Collection.
**Values:** List of Collection IDs | +| `data` | **Description:** Overrides the [default data dictionary](#default-data). Defines the data that the custom dynamic collection processes.
**Values:** Dictionary List of TMDb Main Show ID | +| `append_data` | **Description:** Appends to the [default data dictionary](#default-data).
**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
**Values:** Dictionary List of TMDb Show IDs | +| `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of TMDb Show IDs | +| `sonarr_add_missing` | **Description:** Override Sonarr `add_missing` attribute for all collections in a Defaults file.
**Values:** `true` or `false` | +| `sonarr_add_missing_<>` | **Description:** Override Sonarr `add_missing` attribute of the specified key's collection.
**Default:** `sonarr_add_missing`
**Values:** `true` or `false` | +| `sonarr_folder` | **Description:** Override Sonarr `root_folder_path` attribute for all collections in a Defaults file.
**Values:** Folder Path | +| `sonarr_folder_<>` | **Description:** Override Sonarr `root_folder_path` attribute of the specified key's collection.
**Default:** `sonarr_folder`
**Values:** Folder Path | +| `sonarr_tag` | **Description:** Override Sonarr `tag` attribute for all collections in a Defaults file.
**Values:** List or comma-separated string of tags | +| `sonarr_tag_<>` | **Description:** Override Sonarr `tag` attribute of the specified key's collection.
**Default:** `sonarr_tag`
**Values:** List or comma-separated string of tags | +| `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.
**Values:** List or comma-separated string of tags | +| `item_sonarr_tag_<>` | **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.
**Default:** `item_sonarr_tag`
**Values:** List or comma-separated string of tags | The below is an example config.yml extract with some Template Variables added in to change how the file works. ```yaml libraries: - Movies: + TV Shows: metadata_path: - - pmm: show/franchise + - pmm: franchise template_variables: - collection_order: alpha - sort_title: "!10_<>" build_collection: false sonarr_add_missing: true - sonarr_folder: /mnt/local/Media/TV - sonarr_tag: <> - item_sonarr_tag: <> ``` +## Default `data` + +```yaml +data: + "44006": One Chicago + "75219": 9-1-1 + "253": Star Trek + "1412": Arrowverse + "85536": Star Wars + "121": Doctor Who + "1402": The Walking Dead + "4629": Stargate + "519": Law & Order + "5614": NCIS + "1431": CSI + "951": Archie Comics + "31917": Pretty Little Liars + "6357": The Twilight Zone +``` + +## Default `addons` + +```yaml +addons: + 44006: [58841, 62650, 67993] # Chicago Fire: Med, PD, Justice + 75219: 89393 # 9-1-1: 9-1-1 Lone Star + 253: [655, 1855, 314, 67198, 85949] # Star Trek, The Next Generation, Voyager, Enterprise, Discovery, Picard + 1412: [60735, 62688, 62643, 71663, 89247] # Arrow: The Flash, Supergirl, Legends of Tomorrow, Black Lightning, Batwoman + 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 + 121: [57243, 1057, 424, 203, 64073] # Doctor Who: K-9 & Company, Torchwood, The Sarah Jane Adventures, Class + 1402: [62286, 94305] # The Walking Dead: Fear the Walking Dead, World Beyond + 4629: [2290, 5148, 72925] # Stargate SG-1: Atlantis, Universe, Origins + 549: [2734, 4601, 3357, 32632, 72496, 157088, 106158] #Law & Order, Special Victims Unit, Criminal Intent, Trial by Jury, LA, True Crime, Hate Crimes, Organized Crime + 5614: [17610, 124271, 61387, 4376] # NCIS, Los Angeles, New Orleans, Hawaii, JAG + 1431: [1620, 2458, 122194, 61811] # CSI: Miami, NY, Cyber, Vegas + 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 + 31917: [46958, 79863, 110531] # Pretty Little Liars: Ravenswood, The Perfectionists, Original Sin + 6357: [1918, 83135, 16399] # The Twilight Zone (multiple) +``` diff --git a/docs/home/guides/docker.md b/docs/home/guides/docker.md index 5356b7bd..75efe3d6 100644 --- a/docs/home/guides/docker.md +++ b/docs/home/guides/docker.md @@ -13,7 +13,7 @@ The specific steps you will be taking: 2. Use `docker` to retrieve the PMM Docker image 3. Create a directory for your config files and learn how to tell Docker to use it 4. Gather two things that the script requires: - 1. TMDB API Key + 1. TMDb API Key 2. Plex URL and Token 5. Then, iteratively: 1. use `docker` to run the image diff --git a/docs/home/guides/local.md b/docs/home/guides/local.md index ef116f1e..c38b85ae 100644 --- a/docs/home/guides/local.md +++ b/docs/home/guides/local.md @@ -13,7 +13,7 @@ The specific steps you will be taking: 3. Use `git` to retrieve the code 4. Install requirements [extra bits of code required for PMM] 5. Gather two things that the script requires: - 1. TMDB API Key + 1. TMDb API Key 2. Plex URL and Token 6. Then, iteratively: 1. use `python` to run the script diff --git a/docs/index.md b/docs/index.md index 535eef86..fc6aa671 100644 --- a/docs/index.md +++ b/docs/index.md @@ -18,7 +18,7 @@ Plex Meta Manager is an open source Python 3 project that has been designed to e 1. Install Plex Meta Manager; this process is described [here](home/installation). -2. Once installed, you have to create a [Configuration File](config/configuration), which contains URLs and credentials and the like which are used to connect to services like Plex and TMDB. +2. Once installed, you have to create a [Configuration File](config/configuration), which contains URLs and credentials and the like which are used to connect to services like Plex and TMDb. 3. After that you can start updating Metadata and building automatic Collections by creating a [Metadata File](metadata/metadata) for each Library you want to interact with.