brandan-schmitz / plexbot

Plexbot - A discord bot for automating movie libraries.
0 stars 0 forks source link

Ability to resume interrupted downloads #17

Closed brandan-schmitz closed 3 years ago

brandan-schmitz commented 3 years ago

The bot should store the current position of the download in a temporary file of some kind for all ongoing downloads, along with any relevant information necessary to restart the download at a later date such as the movie information and download link.

This could potentially be integrated with issue #16 by creating a custom extension that represents the data contained in the actual file as well as associated information required for restarting downloads. This would require the ability to save, laid, and parse large files efficiently as the bot will need to be able to handle multiple files at a time.

When the bot starts up, it will need to check specified directories (recursively) for these files and load any that exist in order to queue the downloads. Any that were previously being downloaded by the resolution manager or waitlist manage should be removed from those initial loading queues so the bot does not attempt to initialize a second download of the file. Resumed downloads should still be able to trigger notifications to users and the appropriate discord server channels.

brandan-schmitz commented 3 years ago

Closing as this is implemented in v2