[81] fix playlist error and add current_year to templates

This commit is contained in:
meisnate12 2023-02-22 11:59:27 -05:00
parent 79bbd7d216
commit a42be0ea1a
4 changed files with 9 additions and 6 deletions

View file

@ -1 +1 @@
1.18.3-develop80
1.18.3-develop81

View file

@ -56,7 +56,7 @@ This is a quick walkthrough of setting up the Plex-Meta-Manager Docker container
![](synology/dsm7-02.png)
7. To add Environment Variables and Command Line Arguments click "Advance Settings". (Optional)
7. To add Environment Variables and Command Line Arguments click "Advanced Settings". (Optional)
Information on available Command Line Arguments and Environment Variables can be found [here](../environmental)
@ -89,7 +89,7 @@ This is a quick walkthrough of setting up the Plex-Meta-Manager Docker container
````
````{tab} DiskStation Manager 6
5. You can name the Container whatever you want using the "Container Name" text Box. Then click "Advance Settings".
5. You can name the Container whatever you want using the "Container Name" text Box. Then click "Advanced Settings".
![](synology/dsm6-01.png)
@ -112,7 +112,7 @@ This is a quick walkthrough of setting up the Plex-Meta-Manager Docker container
![](synology/dsm6-04.png)
9. Select "Apply" to save the "Advance Settings", select "Next" to go to the Summary, and select "Done" to finish and creating the container.
9. Select "Apply" to save the "Advanced Settings", select "Next" to go to the Summary, and select "Done" to finish and creating the container.
![](synology/dsm6-05.png)

View file

@ -2746,9 +2746,8 @@ class CollectionBuilder:
except NotFound:
logger.error("Details: Failed to Update Please delete the collection and run again")
logger.info("")
#else:
else:
#self.obj.batchEdits()
batch_display = "Collection Metadata Edits"
if summary and str(summary[1]) != str(self.obj.summary):
self.obj.editSummary(summary[1])

View file

@ -227,8 +227,12 @@ class DataFile:
name = mapping_name
name_var = f"{self.data_type.lower()}_name"
now = datetime.now()
original_variables[name_var] = str(name)
original_variables["mapping_name"] = mapping_name
original_variables["current_year"] = now.year
original_variables["current_month"] = now.month
original_variables["current_day"] = now.day
original_variables["library_type"] = self.library.type.lower() if self.library else "item"
original_variables["library_typeU"] = self.library.type if self.library else "Item"
original_variables["library_name"] = self.library.name if self.library else "playlist"