Update 2.8.2
This commit is contained in:
parent
09cf8206a9
commit
0f720acd8a
10
core.py
10
core.py
@ -188,7 +188,7 @@ def smallCoverCheck(path, number, imagecut, cover_small, c_word, option, Config,
|
|||||||
img = Image.open('1.jpg')
|
img = Image.open('1.jpg')
|
||||||
w = img.width
|
w = img.width
|
||||||
h = img.height
|
h = img.height
|
||||||
img.save(path + '/poster.png')
|
img.save(path + '/poster.jpg')
|
||||||
os.remove(path + '/1.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(" <plot>" + outline + "</plot>", file=code)
|
print(" <plot>" + outline + "</plot>", file=code)
|
||||||
print(" <runtime>" + str(runtime).replace(" ", "") + "</runtime>", file=code)
|
print(" <runtime>" + str(runtime).replace(" ", "") + "</runtime>", file=code)
|
||||||
print(" <director>" + director + "</director>", file=code)
|
print(" <director>" + director + "</director>", file=code)
|
||||||
print(" <poster>poster.png</poster>", file=code)
|
print(" <poster>poster.jpg</poster>", file=code)
|
||||||
print(" <thumb>thumb.png</thumb>", file=code)
|
print(" <thumb>thumb.png</thumb>", file=code)
|
||||||
print(" <fanart>fanart.jpg</fanart>", file=code)
|
print(" <fanart>fanart.jpg</fanart>", file=code)
|
||||||
try:
|
try:
|
||||||
@ -496,14 +496,14 @@ def cutImage(option, imagecut, path, number, c_word):
|
|||||||
w = img.width
|
w = img.width
|
||||||
h = img.height
|
h = img.height
|
||||||
img2 = img.crop((w / 1.9, 0, w, h))
|
img2 = img.crop((w / 1.9, 0, w, h))
|
||||||
img2.save(path + '/poster.png')
|
img2.save(path + '/poster.jpg')
|
||||||
except:
|
except:
|
||||||
print('[-]Cover cut failed!')
|
print('[-]Cover cut failed!')
|
||||||
elif imagecut == 0:
|
elif imagecut == 0:
|
||||||
img = Image.open(path + '/fanart.jpg')
|
img = Image.open(path + '/fanart.jpg')
|
||||||
w = img.width
|
w = img.width
|
||||||
h = img.height
|
h = img.height
|
||||||
img.save(path + '/poster.png')
|
img.save(path + '/poster.jpg')
|
||||||
elif option == 'emby':
|
elif option == 'emby':
|
||||||
if imagecut == 1:
|
if imagecut == 1:
|
||||||
try:
|
try:
|
||||||
@ -599,7 +599,7 @@ def pasteFileToFolder_mode2(filepath, path, multi_part, number, part, c_word):
|
|||||||
def copyRenameJpgToBackdrop(option, path, number, c_word):
|
def copyRenameJpgToBackdrop(option, path, number, c_word):
|
||||||
if option == 'plex':
|
if option == 'plex':
|
||||||
shutil.copy(path + '/fanart.jpg', path + '/Backdrop.jpg')
|
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':
|
if option == 'emby':
|
||||||
shutil.copy(path + '/' + number + c_word + '.jpg', path + '/Backdrop.jpg')
|
shutil.copy(path + '/' + number + c_word + '.jpg', path + '/Backdrop.jpg')
|
||||||
if option == 'kodi':
|
if option == 'kodi':
|
||||||
|
Loading…
Reference in New Issue
Block a user