mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
Image Error fix
This commit is contained in:
parent
df24853936
commit
fb2aa1a085
1 changed files with 1 additions and 1 deletions
|
@ -695,7 +695,7 @@ class Plex(Library):
|
|||
if item_dir and self.dimensional_asset_rename and (not poster or not background):
|
||||
for file in util.glob_filter(os.path.join(item_dir, "*.*")):
|
||||
if file.lower().endswith((".jpg", ".png", ".jpeg")):
|
||||
image = Image.open(poster)
|
||||
image = Image.open(file)
|
||||
_w, _h = image.size
|
||||
image.close()
|
||||
if not poster and _h > _w:
|
||||
|
|
Loading…
Reference in a new issue