diff --git a/core.py b/core.py
index 7a6bfea..d3679f1 100644
--- a/core.py
+++ b/core.py
@@ -355,7 +355,15 @@ def print_files(path, leak_word, c_word, naming_rule, part, cn_sub, json_data, f
print(" " + release + "", file=code)
print(" " + release + "", file=code)
if 'userrating' in json_data:
- print(" " + json_data['userrating'] + "", file=code)
+ try:
+ strrating = json_data['userrating']
+ userrating = round(float(strrating) * 2.0)
+ print(f" {userrating}", file=code)
+ print(f" {userrating}", file=code)
+ rating_score = round(float(strrating) * 20.0, 1)
+ print(f" {rating_score:.1f}", file=code)
+ except:
+ pass
print(" " + cover + "", file=code)
if config.getInstance().is_trailer():
print(" " + trailer + "", file=code)
@@ -692,7 +700,6 @@ def core_main(file_path, number_th, oCC):
pass
-
# 裁剪图
cutImage(imagecut, path , fanart_path, poster_path)