bitbybyte / fantiadl

Download posts and media from Fantia
MIT License
299 stars 51 forks source link

added .complete file for downloaded posts #86

Closed Rennschnitzl closed 2 years ago

Rennschnitzl commented 2 years ago

My issue: when i rerun the downloader with parameters that would try to download already finished posts it takes quite a while to go through all files in the post just to get the "file already exists.. skipping" message.

so my idea was to check if all files that should have been downloaded are present and add an .complete file that will be checked after before actually downloading any files.

so already downloaded posts should be skipped way faster.

caveat: posts that get edited later wont get downloaded. i realize that i should parse the metadata for files that should be present instead of hijacking the download function.

i'll submit this pull request anyway for shits and giggles.