digitalec / deemon

Monitor specified artists for new releases
GNU General Public License v3.0
176 stars 15 forks source link

Feature Request: Robust Handling of Corrupt Files Due to Interrupted Downloads #101

Open deletescarry opened 1 year ago

deletescarry commented 1 year ago

It looks like it's possible due to network issues or force existing the app, that a file can become corrupted.

It might be good to implement some functionality like temporarily download to a temp file, then rename the file when complete

digitalec commented 8 months ago

This is a great idea, and would certainly be beneficial to corrupt/incomplete downloads. I don’t have the time these days to implement this feature but I’d be happy to approve a PR if someone would like to work on this.

The download_path would have to be pointed to a temporary directory, each file checked for completeness (somehow) and then moved appropriately. This would require a fairly substantial code change as deemix is responsible for the download and post-download process.