[15] Load Truncated Images

This commit is contained in:
meisnate12 2022-07-10 04:04:06 -04:00
parent 524bf1c967
commit 9203e349a4
2 changed files with 3 additions and 1 deletions

View file

@ -1 +1 @@
1.17.1-develop14
1.17.1-develop15

View file

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