From 77415bf7bcd0fb029464455b6b62122c8f4566be Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 1 Feb 2023 15:55:01 -0500 Subject: [PATCH] [52] dimensional_asset_rename ignores title cards --- VERSION | 2 +- modules/plex.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index c2ccce99..be284a59 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop51 +1.18.3-develop52 diff --git a/modules/plex.py b/modules/plex.py index b16c93c8..d52b5ae4 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -1280,7 +1280,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")): + if file.lower().endswith((".png", ".jpg", ".jpeg", "webp")) and re.match(r"s\d+e\d+|season\d+", file.lower()): try: image = Image.open(file) _w, _h = image.size