tdl icon indicating copy to clipboard operation
tdl copied to clipboard

[Feat] Automatically restart/retry after download/upload fails or is interrupted

Open jxmesth opened this issue 1 year ago • 3 comments

Basically the title. Is there a way this can be implemented?

In addition to this, would it be possible to have the ability to resume/continue uploading/downloading files from the last position where the task was interrupted?

Thanks in advance for any help : )

jxmesth avatar Nov 21 '23 14:11 jxmesth

Do you mean http://localhost:1313/tdl/guide/download/#resumerestart ?

iyear avatar Nov 21 '23 15:11 iyear

@iyear, yep I do, but I mainly meant for uploads. I'm aware that it sorta works for downloads but I tried using the same parameters while uploading and it didn't work. Is it supposed to work the same for uploads as well?

jxmesth avatar Nov 21 '23 15:11 jxmesth

while true; do
    tdl dl -f tdl-export.json -d /path/to/your/dir --continue || sleep 5
done

this should do the job

nano script
chmod +x script
./script

paste the code in the script

bolavefasfas avatar Jan 05 '24 09:01 bolavefasfas