From 92d97862575f3aa449e7335041b1c906070b5820 Mon Sep 17 00:00:00 2001 From: Feng4 Date: Sat, 9 Jan 2021 22:32:33 +0800 Subject: [PATCH] Update core.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit plex不能使用预告片功能,有trailer导致plex无法识别nfo文件,这里做个判断 --- core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core.py b/core.py index 3b592f5..36f8327 100755 --- a/core.py +++ b/core.py @@ -466,7 +466,8 @@ def print_files(path, c_word, naming_rule, part, cn_sub, json_data, filepath, fa print(" " + number + "", file=code) print(" " + release + "", file=code) print(" " + cover + "", file=code) - print(" " + trailer + "", file=code) + if config.Config().is_trailer(): + print(" " + trailer + "", file=code) print(" " + website + "", file=code) print("", file=code) print("[+]Wrote! " + path + "/" + number + part + c_word + ".nfo")