Commit Graph

37 Commits

Author SHA1 Message Date
Talmaj Marinc
8fc848b763 Add small improvements and query optimization.
Some checks are pending
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
Build package / Build Test (3.13) (push) Waiting to run
Build package / Build Test (3.10) (push) Waiting to run
Build package / Build Test (3.11) (push) Waiting to run
Build package / Build Test (3.12) (push) Waiting to run
Build package / Build Test (3.14) (push) Waiting to run
2026-07-04 21:43:22 +02:00
Talmaj Marinc
c32fb2a077 Allow whitespaces around download urls, strip them in the backend. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
5eb2f93cdb Add distinction in error messaging for gated models. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
d9ec107e51 Add extension check on the final resolved url -> fix downloading from civitAI. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
7fb93211a3 Add delete and clear all downloads funcitonalities. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
466dc97304 Disable newline translations on Windows, \r\n -> \n only. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
e0fa1a7042 Add support for ENV based HF_TOKEN. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
df8e50eba6 Fix an issue with windows lacking have os.pwrite 2026-07-04 21:25:30 +02:00
Talmaj Marinc
0b8a9a3d6d Fix more AI detected issues., 2026-07-04 21:25:30 +02:00
Talmaj Marinc
b9d6747421 Fix ruff. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
f7627e6b59 Fix sweep deleting FAILED partials and fix segmented resume path trusted offsets blindly. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
04a1eb9647 Redact urls in logging and fix concurrent enqueue issue that could corrupt the downloaded files. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
806fc576e7 Simplify docstrings. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
64f4ef6b00 Normalize malformed safetensors headers into StructuralError. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
47163508ca Prevent redirects to loopback/internal IPs (SSRF) 2026-07-04 21:25:30 +02:00
Talmaj Marinc
2b23eb08ec Simplify docstrings. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
8e91d15cdd Fix IPv4-mapped IPv6 addresses 2026-07-04 21:25:30 +02:00
Talmaj Marinc
75722b14b5 Restrict cleartext HTTP redirects to explicit loopback/dev hosts. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
e80fc0e1a2 Simplify docstrings. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
e8f5cb32bf Don't echo full URLs and raw exception text from probe failures. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
aa253890dc Simplify docstrings. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
f18ee7cdb3 Handle short pwrite() results. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
6cfb7e5b7f Switch to asyncio.to_thread for db calls in job.py 2026-07-04 21:25:30 +02:00
Talmaj Marinc
b51d18c641 Improve _finalize checks for downloads. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
72e081933a Truncate file to 0 before restarting. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
dd6258c9c3 Add max-download-size in case the server tries to send larger files than it reports. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
303825899e Clear error when the job leaves a failure state. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
db0fadf20c Fix resuming of segmented download. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
a54dd1ae23 Simplify docstrings. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
bbee25a3e6 Fix potential concurrency and db integrity error. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
ca1daf3c27 Fix an issue when a credential is deleted, resuming of download fails. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
6be778ce45 Simplify docstrings. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
af9ca03926 Fix sercret_last4 2026-07-04 21:25:30 +02:00
Talmaj Marinc
8deef98cc8 Improve normalize_host 2026-07-04 21:25:30 +02:00
Talmaj Marinc
36c9ef767e Docstring simplification. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
0b127e4b50 Fix url parsing. 2026-07-04 21:25:30 +02:00
Talmaj Marinc
236a7c21e9 Add initial commit for model downloader. 2026-07-04 21:25:30 +02:00