[28] update image locations

This commit is contained in:
meisnate12 2022-11-19 15:45:38 -05:00
parent 1128edcafe
commit 19282d63fa
8 changed files with 18 additions and 19 deletions

View file

@ -1 +1 @@
1.18.0-develop27
1.18.0-develop28

View file

@ -42,8 +42,7 @@ dynamic_collections:
default: tmdb
translation_key:
default: actor
image:
default: people/<<style>>/<<key_encoded>>
style:
default: bw
url_poster:
default: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-People-<<style>>/master/<<key_name_first_letter>>/Images/<<key_encoded>>.jpg

View file

@ -42,8 +42,7 @@ dynamic_collections:
default: tmdb
translation_key:
default: director
image:
default: people/<<style>>/<<key_encoded>>
style:
default: bw
url_poster:
default: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-People-<<style>>/master/<<key_name_first_letter>>/Images/<<key_encoded>>.jpg

View file

@ -42,8 +42,7 @@ dynamic_collections:
default: tmdb
translation_key:
default: producer
image:
default: people/<<style>>/<<key_encoded>>
style:
default: bw
url_poster:
default: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-People-<<style>>/master/<<key_name_first_letter>>/Images/<<key_encoded>>.jpg

View file

@ -42,8 +42,7 @@ dynamic_collections:
default: tmdb
translation_key:
default: writer
image:
default: people/<<style>>/<<key_encoded>>
style:
default: bw
url_poster:
default: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-People-<<style>>/master/<<key_name_first_letter>>/Images/<<key_encoded>>.jpg

View file

@ -40,7 +40,8 @@ templates:
order_<<key>>: <<order>>
item_radarr_tag_<<key>>: <<item_radarr_tag>>
item_sonarr_tag_<<key>>: <<item_sonarr_tag>>
url_poster_<<key>>: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/<<image>>.jpg
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/<<image>>.jpg
url_poster_<<key>>: <<url_poster>>
optional:
- use_<<key>>
- allowed_libraries

View file

@ -57,11 +57,11 @@ Deletes collections based on a set of given attributes. The Collection must matc
**Values:** There are a few different options to determine how the `delete_collections` works.
| Attribute | Description |
|:---------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `managed` | Collection must be a Managed Collection (the collection has the `PMM` label) or Unmanaged Collection (the collection does not have the `PMM` label)<br>**Values:** `true` (Managed) or `false` (Unmanaged) |
| `configured` | Collection must be a Configured Collection (collection is in the config file of the specific PMM run) or Unconfigured Collection (collection is not in the config file of the specific PMM run). The collection does not need to be scheduled to be considered configured and only needs to be in the config file.<br>**Values:** `true` (Configured) or `false` (Unconfigured) |
| `less` | Collection must contain less then the given number of items.<br>**Default:** ``<br>**Values:** Number Greater then 0 |
| Attribute | Description |
|:-------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `managed` | **Values:**<br>`true`: Collection must be a Managed Collection to be deleted (the collection has the `PMM` label)<br>`false`: Collection must be an Unmanaged Collection to be deleted (the collection does not have the `PMM` label) |
| `configured` | **Values:**<br>`true`: Collection must be a Configured Collection to be deleted (collection is in the config file of the specific PMM run)<br>`false`: Collection must be an Unconfigured Collection to be deleted (collection is not in the config file of the specific PMM run).<br>**The collection does not need to be scheduled to be considered configured and only needs to be in the config file.** |
| `less` | Collection must contain less then the given number of items to be deleted.<br>**Values:** Number Greater then 0 |
**Example:**

View file

@ -306,6 +306,8 @@ class DataFile:
key_name_variables[var_key] = var_value[language]
if "key_name" in variables:
variables["original_key_name"] = variables["key_name"]
first_letter = str(variables["key_name"]).upper()[0]
variables["key_name_first_letter"] = first_letter if first_letter.isalpha() else "#"
if variables["key_name"] in key_name_variables:
variables["key_name"] = key_name_variables[variables["key_name"]]
variables["translated_key_name"] = variables["key_name"]