mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[15] Load Truncated Images
This commit is contained in:
parent
524bf1c967
commit
9203e349a4
2 changed files with 3 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
1.17.1-develop14
|
1.17.1-develop15
|
||||||
|
|
|
@ -5,6 +5,7 @@ from datetime import datetime
|
||||||
try:
|
try:
|
||||||
import plexapi, requests, schedule
|
import plexapi, requests, schedule
|
||||||
from modules.logs import MyLogger
|
from modules.logs import MyLogger
|
||||||
|
from PIL import ImageFile
|
||||||
from plexapi import server
|
from plexapi import server
|
||||||
from plexapi.exceptions import NotFound
|
from plexapi.exceptions import NotFound
|
||||||
from plexapi.video import Show, Season
|
from plexapi.video import Show, Season
|
||||||
|
@ -147,6 +148,7 @@ if not uuid_num:
|
||||||
handle.write(str(uuid_num))
|
handle.write(str(uuid_num))
|
||||||
|
|
||||||
plexapi.BASE_HEADERS["X-Plex-Client-Identifier"] = str(uuid_num)
|
plexapi.BASE_HEADERS["X-Plex-Client-Identifier"] = str(uuid_num)
|
||||||
|
ImageFile.LOAD_TRUNCATED_IMAGES = True
|
||||||
|
|
||||||
def process(attrs):
|
def process(attrs):
|
||||||
with ProcessPoolExecutor(max_workers=1) as executor:
|
with ProcessPoolExecutor(max_workers=1) as executor:
|
||||||
|
|
Loading…
Reference in a new issue