Skip to content

Commit

Permalink
Test UTF8_FS: don't use original filename (Nandaka#615)
Browse files Browse the repository at this point in the history
If original filename is long, adding "あいうえお.test" could make filename to exceeding max chars.
  • Loading branch information
split-n authored and Nandaka committed Jan 2, 2020
1 parent a8eb6c4 commit bb051fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PixivUtil2.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def download_image(url, filename, referer, overwrite, max_retry, backup_old_file

# test once and set the result
if UTF8_FS is None:
filename_test = filename_save + "あいうえお"
filename_test = os.path.dirname(filename_save) + os.sep + "あいうえお"
try:
PixivHelper.makeSubdirs(filename_test)
test_utf = open(filename_test + '.test', "wb")
Expand Down

0 comments on commit bb051fd

Please sign in to comment.