From bbe13d7c5bc7202521e0c1783b86bb40a9885fe8 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 23 Feb 2023 16:05:56 -0500 Subject: [PATCH] [91] fix metadata docs --- VERSION | 2 +- docs/metadata/metadata/movie.md | 21 ++++++++++++--------- modules/meta.py | 3 ++- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/VERSION b/VERSION index 7dfbb8d2..5bdafed4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop90 +1.18.3-develop91 diff --git a/docs/metadata/metadata/movie.md b/docs/metadata/metadata/movie.md index 716cf706..1f2e7c75 100644 --- a/docs/metadata/metadata/movie.md +++ b/docs/metadata/metadata/movie.md @@ -103,15 +103,18 @@ The available attributes for editing movies are as follows ### Special Attributes -| Attribute | Allowed Values | -|:-------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `title` | Title if different from the mapping value useful when you have multiple movies with the same name. See the [Metadata Page](../metadata.md#metadata-attributes) for how searching for files works. | -| `alt_title` | Alternative title to look for and then change to the mapping name. See the [Metadata Page](../metadata.md#metadata-attributes) for how searching for files works. | -| `year` | Year of movie for better identification. See the [Metadata Page](../metadata.md#metadata-attributes) for how searching for files works. | -| `edition_filter` | Edition of movie for better identification. Can be a list (only one needs to match). See the [Metadata Page](../metadata.md#metadata-attributes) for how searching for files works. | -| `edition_contains` | Edition of movie must contain the given string for better identification. Can be a list (only one needs to match). See the [Metadata Page](../metadata.md#metadata-attributes) for how searching for files works. | -| `tmdb_show` | TMDb Show ID to use for metadata useful for miniseries that have been compiled into a movie. **This is not used to say this show is the given ID.** | -| `tmdb_movie` | TMDb Movie ID to use for metadata useful for movies that have been split into segments **This is not used to say this show is the given ID.** | +| Attribute | Allowed Values | +|:-------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `title` | Title if different from the mapping value useful when you have multiple movies with the same name. See the [Metadata Page](../metadata.md#metadata-attributes) for how searching for files works. | +| `alt_title` | Alternative title to look for and then change to the mapping name. See the [Metadata Page](../metadata.md#metadata-attributes) for how searching for files works. | +| `year` | Year of movie for better identification. See the [Metadata Page](../metadata.md#metadata-attributes) for how searching for files works. | +| `blank_edition`1 | Movie has no Edition. See the [Metadata Page](../metadata.md#metadata-attributes) for how searching for files works. | +| `edition_filter`1 | Edition of movie for better identification. Can be a list (only one needs to match). See the [Metadata Page](../metadata.md#metadata-attributes) for how searching for files works. | +| `edition_contains`1 | Edition of movie must contain the given string for better identification. Can be a list (only one needs to match). See the [Metadata Page](../metadata.md#metadata-attributes) for how searching for files works. | +| `tmdb_show` | TMDb Show ID to use for metadata useful for miniseries that have been compiled into a movie. **This is not used to say this show is the given ID.** | +| `tmdb_movie` | TMDb Movie ID to use for metadata useful for movies that have been split into segments **This is not used to say this show is the given ID.** | + +1. If the server does not have a Plex Pass then the Edition Field is not accessible. In this case PMM will check the movies filepath for `{edition-MOVIES EDITION}` to determine what the edition is. ### General Attributes diff --git a/modules/meta.py b/modules/meta.py index 876afc99..d0c2e512 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -1244,12 +1244,13 @@ class MetadataFile(DataFile): new_item = [] logger.trace("") logger.trace("Edition Filtering: ") + if not self.library.plex_pass: + logger.warning("Plex Warning: Plex Pass is required to use the Edition Field scanning filenames instead") for i in item: self.library.reload(i) if self.library.plex_pass: check = i.editionTitle if i.editionTitle else "" else: - logger.warning("Plex Warning: Plex Pass is required to use the Edition Field scanning filenames instead") values = [loc for loc in i.locations if loc] if not values: raise Failed(f"Plex Error: No Filepaths found for {i.title}")