twspace-dl icon indicating copy to clipboard operation
twspace-dl copied to clipboard

Option to not download same file twice

Open 15532th opened this issue 2 years ago • 1 comments

In situation when space ended but still available for replay, running twspace_dl -U more than once will result in .m4a file being downloaded again and replacing already existing one. If systemd unit with RestartSec=15 is used, new download will be started as soon as old one finishes the entire time space stays available.

Checking if file with given name already exists before starting download would prevent this from happening. yt-dlp also has --download-archive option, which maintains list of id of successful downloads and skips over them if called twice.

15532th avatar Jun 22 '22 00:06 15532th

Using docker-compose to monitor user also encountered the same problem. @Ryu1845 I think #64 should be reviewed.

jim60105 avatar Oct 03 '22 08:10 jim60105