From a42be0ea1a6fefea98f4751920e9eed1966a4004 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 22 Feb 2023 11:59:27 -0500 Subject: [PATCH] [81] fix playlist error and add current_year to templates --- VERSION | 2 +- docs/home/guides/synology.md | 6 +++--- modules/builder.py | 3 +-- modules/meta.py | 4 ++++ 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/VERSION b/VERSION index a39da249..5fb174f7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop80 +1.18.3-develop81 diff --git a/docs/home/guides/synology.md b/docs/home/guides/synology.md index 101173a3..df560eab 100644 --- a/docs/home/guides/synology.md +++ b/docs/home/guides/synology.md @@ -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) diff --git a/modules/builder.py b/modules/builder.py index 9de9377f..c08fe2cb 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -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]) diff --git a/modules/meta.py b/modules/meta.py index ee0e4cb7..00e20368 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -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"