mirror of
https://github.com/Yuvi9587/Kemono-Downloader.git
synced 2026-10-14 21:33:26 +00:00
[GH-ISSUE #146] [Bug] Unescaped SQL queries cause near "in": syntax error and save failures when path contains reserved words or brackets #101
Labels
No labels
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Yuvi9587/Kemono-Downloader#101
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JingShing on GitHub (Aug 24, 2026).
Original GitHub issue: https://github.com/Yuvi9587/Kemono-Downloader/issues/146
Originally assigned to: @Yuvi9587 on GitHub.
When downloading posts from a creator whose username or ID is or contains SQL reserved words (such as
in), the downloader fails to record downloaded files to the local database and throws an internal SQL syntax error:->>Save Fail for '<filename>': near "in": syntax errorBecause the database write fails, all downloaded files are treated as failed/discarded, and the clean-up routine removes the target subfolders (even if the local save directory path itself contains no special characters or reserved words).
To Reproduce
in(e.g., URL containing/user/inor creator namein).E:\kemono\Paw\fanbox30000).Expected Behavior
Downloads and database tracking records should complete successfully regardless of creator names or service identifiers containing SQL keywords (
in,select,order, etc.). Database operations should use parameterized queries (e.g., SQLite?placeholders) rather than raw string formatting/f-strings to construct SQL statements.Relevant Log Output