From 8bd43337795286046652de186087ed8386d67c30 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 28 Jul 2022 09:01:13 -0400 Subject: [PATCH] [13] fix collection_level error --- VERSION | 2 +- docs/metadata/overlay.md | 30 +++++++++++++++--------------- modules/plex.py | 3 ++- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/VERSION b/VERSION index af386c0b..9947d0ab 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.2-develop12 +1.17.2-develop13 diff --git a/docs/metadata/overlay.md b/docs/metadata/overlay.md index c2e1a659..0f378750 100644 --- a/docs/metadata/overlay.md +++ b/docs/metadata/overlay.md @@ -175,21 +175,21 @@ You can use the item's metadata to determine the text. You set the `name` to `te There are multiple Special Text Variables that can be used when formatting the text. The variables are defined like so `<>` and some can have modifiers like so `<>` where `$` is the modifier. The available options are: -| Special Text Variables & Mods | Description | Movies | Shows | Seasons | Episodes | -|:----------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------:|:--------:|:--------:|:--------:| -| `<>`
`<>`
`<>` | audience rating (`8.7`, `9.0`)
audience rating out of 100 (`87`, `90`)
audience rating removing `.0` as needed (`8.7`, `9`) | ✅ | ✅ | ❌ | ✅ | -| `<>`
`<>`
`<>` | critic rating (`8.7`, `9.0`)
critic rating out of 100 (`87`, `90`)
critic rating removing `.0` as needed (`8.7`, `9`) | ✅ | ✅ | ❌ | ✅ | -| `<>`
`<>`
`<>` | user rating (`8.7`, `9.0`)
user rating out of 100 (`87`, `90`)
user rating removing `.0` as needed (`8.7`, `9`) | ✅ | ✅ | ✅ | ✅ | -| `<>` | Title of the Item | ✅ | ✅ | ✅ | ✅ | -| `<<show_title>>` | Title of the Item's Show | ❌ | ❌ | ✅ | ✅ | -| `<<season_title>>` | Title of the Item's Season | ❌ | ❌ | ❌ | ✅ | -| `<<original_title>>` | Original Title of the Item | ✅ | ✅ | ❌ | ❌ | -| `<<content_rating>>` | Content Rating of the Item | ✅ | ✅ | ❌ | ✅ | -| `<<episode_count>>`<br>`<<episode_countW>`<br>`<<episode_count0>`<br>`<<episode_count00>` | Number of Episodes (`1`)<br>Number of Episodes As Words (`One`)<br>Number of Episodes With 10s Padding (`01`)<br>Number of Episodes With 100s Padding (`001`) | ❌ | ✅ | ✅ | ❌ | -| `<<season_number>>`<br>`<<season_numberW>`<br>`<<season_number0>`<br>`<<season_number00>` | Season Number (`1`)<br>Season Number As Words (`One`)<br>Season Number With 10s Padding (`01`)<br>Season Number With 100s Padding (`001`) | ❌ | ❌ | ✅ | ✅ | -| `<<episode_number>>`<br>`<<episode_numberW>`<br>`<<episode_number0>`<br>`<<episode_number00>` | Episode Number (`1`)<br>Episode Number As Words (`One`)<br>Episode Number With 10s Padding (`01`)<br>Episode Number With 100s Padding (`001`) | ❌ | ❌ | ❌ | ✅ | -| `<<runtime>>`<br>`<<runtimeH>>`<br>`<<runtimeM>>` | Runtime of the Item in minutes<br>Hours in runtime of the Item<br>Minutes remaining in the hour in the runtime of the Item | ✅ | ❌ | ❌ | ✅ | -| `<<originally_available>>`<br>`<<originally_available[FORMAT]>>` | Original Available Date of the Item<br>Original Available Date of the Item in the given format. [Format Options](https://strftime.org/) | ✅ | ✅ | ❌ | ✅ | +| Special Text Variables & Mods | Movies | Shows | Seasons | Episodes | +|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------:|:--------:|:--------:|:--------:| +| `<<audience_rating>>`: audience rating (`8.7`, `9.0`)<br>`<<audience_rating%>>`: audience rating out of 100 (`87`, `90`)<br>`<<audience_rating#>>`: audience rating removing `.0` as needed (`8.7`, `9`) | ✅ | ✅ | ❌ | ✅ | +| `<<critic_rating>>`: critic rating (`8.7`, `9.0`)<br>`<<critic_rating%>>`: critic rating out of 100 (`87`, `90`)<br>`<<critic_rating#>>`: critic rating removing `.0` as needed (`8.7`, `9`) | ✅ | ✅ | ❌ | ✅ | +| `<<user_rating>>`: user rating (`8.7`, `9.0`)<br>`<<user_rating%>>`: user rating out of 100 (`87`, `90`)<br>`<<user_rating#>>`: user rating removing `.0` as needed (`8.7`, `9`) | ✅ | ✅ | ✅ | ✅ | +| `<<title>>`: Title of the Item | ✅ | ✅ | ✅ | ✅ | +| `<<show_title>>`: Title of the Item's Show | ❌ | ❌ | ✅ | ✅ | +| `<<season_title>>`: Title of the Item's Season | ❌ | ❌ | ❌ | ✅ | +| `<<original_title>>`: Original Title of the Item | ✅ | ✅ | ❌ | ❌ | +| `<<content_rating>>`: Content Rating of the Item | ✅ | ✅ | ❌ | ✅ | +| `<<episode_count>>`: Number of Episodes (`1`)<br>`<<episode_countW>`: Number of Episodes As Words (`One`)<br>`<<episode_count0>`: Number of Episodes With 10s Padding (`01`)<br>`<<episode_count00>`: Number of Episodes With 100s Padding (`001`) | ❌ | ✅ | ✅ | ❌ | +| `<<season_number>>`: Season Number (`1`)<br>`<<season_numberW>`: Season Number As Words (`One`)<br>`<<season_number0>`: Season Number With 10s Padding (`01`)<br>`<<season_number00>`: Season Number With 100s Padding (`001`) | ❌ | ❌ | ✅ | ✅ | +| `<<episode_number>>`: Episode Number (`1`)<br>`<<episode_numberW>`: Episode Number As Words (`One`)<br>`<<episode_number0>`: Episode Number With 10s Padding (`01`)<br>`<<episode_number00>`: Episode Number With 100s Padding (`001`) | ❌ | ❌ | ❌ | ✅ | +| `<<runtime>>`: Runtime of the Item in minutes`<<runtimeH>>`: Hours in runtime of the Item<br>`<<runtimeM>>`: Minutes remaining in the hour in the runtime of the Item | ✅ | ❌ | ❌ | ✅ | +| `<<originally_available>>`: Original Available Date of the Item`<<originally_available[FORMAT]>>`: Original Available Date of the Item in the given format. [Format Options](https://strftime.org/) | ✅ | ✅ | ❌ | ✅ | Note: You can use the `mass_audience_rating_update` or `mass_critic_rating_update` [Library Operation](../config/operations) to update your plex ratings to various services like `tmdb`, `imdb`, `mdb`, `metacritic`, `letterboxd` and many more. diff --git a/modules/plex.py b/modules/plex.py index 3b527f45..862c8be6 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -191,7 +191,8 @@ method_alias = { "trakt_recommended": "trakt_recommended_weekly", "trakt_watched": "trakt_watched_weekly", "trakt_collected": "trakt_collected_weekly", "collection_changes_webhooks": "changes_webhooks", "radarr_add": "radarr_add_missing", "sonarr_add": "sonarr_add_missing", - "trakt_recommended_personal": "trakt_recommendations" + "trakt_recommended_personal": "trakt_recommendations", + "collection_level": "builder_level", "overlay_level": "builder_level", } modifier_alias = {".greater": ".gt", ".less": ".lt"} date_sub_mods = {"s": "Seconds", "m": "Minutes", "h": "Hours", "d": "Days", "w": "Weeks", "o": "Months", "y": "Years"}