Skip to content

Commit

Permalink
fix #119
Browse files Browse the repository at this point in the history
  • Loading branch information
jnozsc committed Feb 17, 2020
1 parent 690557f commit 229066f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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后缀
Expand Down

0 comments on commit 229066f

Please sign in to comment.