felipegiacomozzi / the-trove-downloader

Downloads files from The Trove Rpg website
50 stars 3 forks source link

File download errors not redownloaded. #34

Open teetui opened 3 years ago

teetui commented 3 years ago

Whenever an download error occurs, the partial file is left behind. Then the code tries to download again, sees the partial file, assumes the file exists, and skips it. This leaves a bad file that is very hard to detect without going through the log looking for errors.

The partial file should be deleted at the end of the exception on line 298 of TheTroveDownloader.cs.

This code is a piece of genius and wonderment. Thank you so much for writing it.

Best regards!