azihassan / youtube-d

A fast command-line Youtube downloader
MIT License
6 stars 0 forks source link

Redownloading a previously finished download causes error #44

Closed azihassan closed 10 months ago

azihassan commented 10 months ago

Upon further inspection, it turns out that the error has to do with an unsatisfiable range issue.

To fix this, I'll need to skip the download if the local file size matches the content length of the URL.

This has been handled in ParallelDownloader in https://github.com/azihassan/youtube-d/pull/26, but is not yet supported for RegularDownloader.