synrg/stream2tracks — Issue #12: Provide ability to resume interrupted job
Author: synrg
Created: 2011-11-28 12:10:10+00:00
State: open

Like abcde (http://lly.org/~rcw/abcde/page/) an interrupted job should be resumable.

Consider moving temporary files from /tmp to the current working directory and base the directory name on a hash of the stream file itself, e.g.

s2t.e847a484774ca4d8490cf2eba2515f9d

Then, provided the stream remains the same as last time, if the user runs stream2tracks and this directory is present, offer to resume the interrupted transfer. Properly handle files that appear to be partially downloaded or damaged (re-fetch or re-process such files -- continuing from where we left off, if possible, otherwise discard them and start over fresh).