From 9203e349a4b0d6c883bb4ce02498c73e5fabfa26 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Sun, 10 Jul 2022 04:04:06 -0400 Subject: [PATCH] [15] Load Truncated Images --- VERSION | 2 +- plex_meta_manager.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 101a01df..7bf773c0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.1-develop14 +1.17.1-develop15 diff --git a/plex_meta_manager.py b/plex_meta_manager.py index 31fb0c39..af56b447 100644 --- a/plex_meta_manager.py +++ b/plex_meta_manager.py @@ -5,6 +5,7 @@ from datetime import datetime try: import plexapi, requests, schedule from modules.logs import MyLogger + from PIL import ImageFile from plexapi import server from plexapi.exceptions import NotFound from plexapi.video import Show, Season @@ -147,6 +148,7 @@ if not uuid_num: handle.write(str(uuid_num)) plexapi.BASE_HEADERS["X-Plex-Client-Identifier"] = str(uuid_num) +ImageFile.LOAD_TRUNCATED_IMAGES = True def process(attrs): with ProcessPoolExecutor(max_workers=1) as executor: