[81] fix playlist error and add current_year to templates

pull/1324/head
meisnate12 2 years ago
parent 79bbd7d216
commit a42be0ea1a

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

@ -56,7 +56,7 @@ This is a quick walkthrough of setting up the Plex-Meta-Manager Docker container
![](synology/dsm7-02.png) ![](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) 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 ````{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) ![](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) ![](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) ![](synology/dsm6-05.png)

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

@ -227,8 +227,12 @@ class DataFile:
name = mapping_name name = mapping_name
name_var = f"{self.data_type.lower()}_name" name_var = f"{self.data_type.lower()}_name"
now = datetime.now()
original_variables[name_var] = str(name) original_variables[name_var] = str(name)
original_variables["mapping_name"] = mapping_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_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_typeU"] = self.library.type if self.library else "Item"
original_variables["library_name"] = self.library.name if self.library else "playlist" original_variables["library_name"] = self.library.name if self.library else "playlist"

Loading…
Cancel
Save