[28] update image locations

pull/1199/head
meisnate12 2 years ago
parent 1128edcafe
commit 19282d63fa

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

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

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

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

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

@ -40,7 +40,8 @@ templates:
order_<<key>>: <<order>> order_<<key>>: <<order>>
item_radarr_tag_<<key>>: <<item_radarr_tag>> item_radarr_tag_<<key>>: <<item_radarr_tag>>
item_sonarr_tag_<<key>>: <<item_sonarr_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: optional:
- use_<<key>> - use_<<key>>
- allowed_libraries - allowed_libraries

@ -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. **Values:** There are a few different options to determine how the `delete_collections` works.
| Attribute | Description | | 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) | | `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` | 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) | | `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.<br>**Default:** ``<br>**Values:** Number Greater then 0 | | `less` | Collection must contain less then the given number of items to be deleted.<br>**Values:** Number Greater then 0 |
**Example:** **Example:**

@ -306,6 +306,8 @@ class DataFile:
key_name_variables[var_key] = var_value[language] key_name_variables[var_key] = var_value[language]
if "key_name" in variables: if "key_name" in variables:
variables["original_key_name"] = variables["key_name"] 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: if variables["key_name"] in key_name_variables:
variables["key_name"] = key_name_variables[variables["key_name"]] variables["key_name"] = key_name_variables[variables["key_name"]]
variables["translated_key_name"] = variables["key_name"] variables["translated_key_name"] = variables["key_name"]

Loading…
Cancel
Save