[61] fix dimensional_asset_rename

pull/1309/head
meisnate12 2 years ago
parent 93f3ded877
commit 1155eb9ca7

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

@ -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): 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, "*.*")): 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: try:
image = Image.open(file) image = Image.open(file)
_w, _h = image.size _w, _h = image.size

Loading…
Cancel
Save