From 229066fa99c94da090d9b54093feb25e0ab76296 Mon Sep 17 00:00:00 2001 From: jnozsc Date: Mon, 17 Feb 2020 09:24:38 -0800 Subject: [PATCH] fix #119 --- core.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core.py b/core.py index 5ba1432..f3363c5 100755 --- a/core.py +++ b/core.py @@ -652,6 +652,13 @@ def core_main(file_path, number_th): filepath = file_path # 影片的路径 number = number_th json_data = getDataFromJSON(number, filepath, failed_folder) # 定义番号 + if json_data["number"] != number: + # fix issue #119 + # the root cause is we normalize the search id + # PrintFiles() will use the normalized id from website, + # but pasteFileToFolder() still use the input raw search id + # so the solution is: use the normalized search id + number = json_data["number"] imagecut = json_data['imagecut'] tag = json_data['tag'] # =======================================================================判断-C,-CD后缀