From 0f720acd8a5996c135f46906f6a267a56b351434 Mon Sep 17 00:00:00 2001
From: Yoshiko <42309414+yoshiko2@users.noreply.github.com>
Date: Fri, 13 Mar 2020 01:19:07 +0800
Subject: [PATCH] Update 2.8.2
---
core.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/core.py b/core.py
index ac952e3..79f37b8 100755
--- a/core.py
+++ b/core.py
@@ -188,7 +188,7 @@ def smallCoverCheck(path, number, imagecut, cover_small, c_word, option, Config,
img = Image.open('1.jpg')
w = img.width
h = img.height
- img.save(path + '/poster.png')
+ img.save(path + '/poster.jpg')
os.remove(path + '/1.jpg')
@@ -345,7 +345,7 @@ def PrintFiles(option, path, c_word, naming_rule, part, cn_sub, json_data, filep
print(" " + outline + "", file=code)
print(" " + str(runtime).replace(" ", "") + "", file=code)
print(" " + director + "", file=code)
- print(" poster.png", file=code)
+ print(" poster.jpg", file=code)
print(" thumb.png", file=code)
print(" fanart.jpg", file=code)
try:
@@ -496,14 +496,14 @@ def cutImage(option, imagecut, path, number, c_word):
w = img.width
h = img.height
img2 = img.crop((w / 1.9, 0, w, h))
- img2.save(path + '/poster.png')
+ img2.save(path + '/poster.jpg')
except:
print('[-]Cover cut failed!')
elif imagecut == 0:
img = Image.open(path + '/fanart.jpg')
w = img.width
h = img.height
- img.save(path + '/poster.png')
+ img.save(path + '/poster.jpg')
elif option == 'emby':
if imagecut == 1:
try:
@@ -599,7 +599,7 @@ def pasteFileToFolder_mode2(filepath, path, multi_part, number, part, c_word):
def copyRenameJpgToBackdrop(option, path, number, c_word):
if option == 'plex':
shutil.copy(path + '/fanart.jpg', path + '/Backdrop.jpg')
- shutil.copy(path + '/poster.png', path + '/thumb.png')
+ shutil.copy(path + '/poster.jpg', path + '/thumb.png')
if option == 'emby':
shutil.copy(path + '/' + number + c_word + '.jpg', path + '/Backdrop.jpg')
if option == 'kodi':