Skip to content

Commit

Permalink
Fix filename conflict with simultaneous -m and -c
Browse files Browse the repository at this point in the history
Both are .json so -c will overwrite -m, modified fix introduced in #133
  • Loading branch information
AlexAplin committed May 6, 2023
1 parent 4b9df3a commit a18a872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nndownload/nndownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,7 @@ def download_comments(session: requests.Session, filename: AnyStr, template_para

output("Downloading comments for {0}...\n".format(template_params["id"]), logging.INFO)

filename = replace_extension(filename, "json")
filename = replace_extension(filename, "comments.json")

comments_post = COMMENTS_API_POST_DATA.format(template_params["thread_params"], template_params["thread_key"]).replace("\'", "\"").replace(": ", ":").replace(", ", ",")
session.options(COMMENTS_API, headers=API_HEADERS)
Expand Down

0 comments on commit a18a872

Please sign in to comment.