[61] fix dimensional_asset_rename

This commit is contained in:
meisnate12 2023-02-06 18:45:22 -05:00
parent 93f3ded877
commit 1155eb9ca7
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
1.18.3-develop60
1.18.3-develop61

View file

@ -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