Additional Documentation - Jeffchen54/KMP-Kemono-Downloader GitHub Wiki

Program Behavior

Duplicate Handling

Post Content from "Content"

Identical behavior from Files except file contents is checked.

Post Comments from "Comments"

Identical behavior from Files except file contents is checked.


Files from "Files"

Duplicate file table is a table initialized before anything is downloaded. Items can be added later on if needed.

  1. Given a download directory recursively look in top level folders within the directory.
  2. Within the top level folders, get each file name and their file size.
  3. Add each file size to its corresponding file name in the table, prepended and postpended '(...)' are removed before checking.

Duplicate check on files is done as:

  1. Check if any matching file names exists in file table using download file name configuration specified by the user. 2a) If matching file name exists, compare their file size within file table. 2b) If no matching file name exists, file is not a duplicate. Add to file table.
  2. If file size does not match, check for filename with (i) postpended or prepended to base file name where i is an integer from 0 to infinity.
  3. Increment i until either a file size matches or there is no file with the specific (i) configuration. 5a) If matching filename and file size is found, file is a duplicate and skipped. 5b) If no file with specific (i) configuration is found, then file is not a duplicate, add to file table.
⚠️ **GitHub.com Fallback** ⚠️