Skip to content

Commit

Permalink
update #1137
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandaka committed Jul 23, 2022
1 parent c1992f9 commit 1b83d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PixivDownloadHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def download_image(caller,
raise
else:
PixivHelper.print_and_log('info', ' done.')

# codecs.open is stateless, so if platform_encoding == utf-8-sig each new line starts from utf-8-sig
# this is bad and I feel bad

Expand All @@ -256,7 +256,7 @@ def download_image(caller,

# write to downloaded lists
if caller.start_iv or config.createDownloadLists:
dfile = codecs.open(caller.dfilename, 'a+', encoding=caller.platform_encoding)
dfile = codecs.open(caller.dfilename, 'a+', encoding=dfile_encoding)
dfile.write(filename_save + "\n")
dfile.close()

Expand Down

0 comments on commit 1b83d0e

Please sign in to comment.