[52] dimensional_asset_rename ignores title cards

pull/1300/head
meisnate12 2 years ago
parent edc7781bd8
commit 77415bf7bc

@ -1 +1 @@
1.18.3-develop51
1.18.3-develop52

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

Loading…
Cancel
Save