From 1155eb9ca79ce1364528fd7155799ac90ad0ec23 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 6 Feb 2023 18:45:22 -0500 Subject: [PATCH] [61] fix dimensional_asset_rename --- VERSION | 2 +- modules/plex.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index e7603a43..3a015420 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop60 +1.18.3-develop61 diff --git a/modules/plex.py b/modules/plex.py index 98399988..9a1ee56a 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -1331,7 +1331,7 @@ class Plex(Library): if is_top_level and self.asset_folders and self.dimensional_asset_rename and (not poster or not background): for file in util.glob_filter(os.path.join(item_asset_directory, "*.*")): - if file.lower().endswith((".png", ".jpg", ".jpeg", "webp")) and re.match(r"s\d+e\d+|season\d+", file.lower()): + if file.lower().endswith((".png", ".jpg", ".jpeg", "webp")) and not re.match(r"s\d+e\d+|season\d+", file.lower()): try: image = Image.open(file) _w, _h = image.size