Commit graph

116 commits

Author SHA1 Message Date
Jesse Bate
687c82cb32 feat: add YTP_MAX_HISTORY to cap history and prevent unbounded DB growth
Long-running instances accumulate history indefinitely. As the history
table grows, SQLite COUNT(*), paginated SELECT, and index scans degrade.

YTP_MAX_HISTORY (default: 0 = unlimited) caps the number of completed
download records kept. Enforcement is a hook in DataStore.put(): on
each insertion, the oldest excess entries are immediately evicted from
the in-memory OrderedDict and their deletes are enqueued to SQLite.
DataStore.load() also trims on startup in case the limit was lowered
between restarts. No background tasks, no DB reads needed for the check.
2026-06-10 20:29:18 +09:30
arabcoders
4881fabb15 feat: add YTP_DISABLE_EXEC to strip dangerous yt-dlp options 2026-06-08 09:29:31 +03:00
arabcoders
fa8ba1af34 feat: make log level runtime managable. 2026-05-28 21:26:23 +03:00
arabcoders
1267dbaf6b refactor: use single logger namespace 2026-05-28 19:07:11 +03:00
arabcoders
39ed3d0361 refactor: add more context to the actual log message. 2026-05-28 17:56:28 +03:00
arabcoders
cf90db3b4c refactor: update log mesages to take advantage of JSONL 2026-05-27 23:53:42 +03:00
arabcoders
854f5f4b42 refactor: use jsonl for loggng for better log view experience 2026-05-18 09:44:29 +03:00
arabcoders
d9dbbb18ea feat: thumbnail generation 2026-05-14 23:22:27 +03:00
arabcoders
3c1567930f feat: add system limits API endpoint and UI for download capacity overview 2026-04-22 22:02:40 +03:00
arabcoders
29777ff928 refactor: remove ui_update_title and standardize page title 2026-04-22 20:55:29 +03:00
arabcoders
ed6cdf1f92 refactor: minor UX fixes. 2026-01-29 16:48:18 +03:00
arabcoders
240a920b6c fix; proper fix for dispatching many websocket events 2026-01-27 11:46:00 +03:00
arabcoders
dae141a6c2 revert: changes to playlist processor 2026-01-27 10:41:17 +03:00
arabcoders
fe0a1c5b70 fix: offload info extraction to ProcessPoolExecutor 2026-01-26 23:32:06 +03:00
arabcoders
41bca681e5 refactor: limit item add 2026-01-26 16:36:14 +03:00
arabcoders
7d6dc7ae76 refactor: move presets to db model 2026-01-25 19:17:54 +03:00
arabcoders
00c3aefff1 Feat: add yt-dlp version checker 2026-01-24 20:04:30 +03:00
arabcoders
48e653b70a refactor: limit concurrent extract info calls to prevent loop blocking 2026-01-14 16:11:21 +03:00
arabcoders
b4de0d9eb4 Fix: remove hardcoded test version 2026-01-09 22:26:02 +03:00
arabcoders
81a4ef0f36 Feat: add version checker and refactor the page footer. 2026-01-09 21:11:39 +03:00
arabcoders
cf8704a2aa feat: add flag to ignore already archived items from being added to download history. 2026-01-07 17:42:08 +03:00
arabcoders
47be76fd73 Refactor: add caching for FlareSolverr solutions. 2026-01-01 20:55:57 +03:00
arabcoders
6c1421b3b4 Feat: Added Cloudflare solver handler 2026-01-01 20:27:07 +03:00
arabcoders
0c0fe9f5e6 Feat: Introduce random delays to task handlers to stagger requests to sites. 2025-12-28 16:35:42 +03:00
arabcoders
ac4ce99b01 Fix: fixes for windows native 2025-12-27 23:58:36 +03:00
arabcoders
561f7d0387 Refactor: remove direct as_posix calls 2025-12-27 21:43:08 +03:00
arabcoders
50f50bed9f Refactor: do not load history items in DownloadQueue 2025-12-18 17:08:18 +03:00
arabcoders
7a85bcdb5c Refactor: swap sqlite to aiosqlite and add queued db updates 2025-12-18 16:31:15 +03:00
arabcoders
77d48bb8c4 Doc: update FAQ.md to include explainer for how prevent live premiere works. 2025-11-19 16:17:15 +03:00
arabcoders
739d8e702f Feat: Paginate history items to improve performance 2025-11-13 19:28:10 +03:00
arabcoders
4e86729206 FEAT: add auto clear env variable 2025-11-11 22:08:32 +03:00
arabcoders
a374c19978 feat: make it possible to load different UI 2025-10-15 01:09:54 +03:00
arabcoders
4d16618cfb merge in the simple mode for testing 2025-09-25 00:47:43 +03:00
arabcoders
520ba86ac9 Allow internal requests. Closes #425 2025-09-23 19:13:07 +03:00
arabcoders
09c0267404 Added Web UI for task definitions 2025-09-23 01:41:22 +03:00
arabcoders
314752a644 Disallow setting unsupported vcodec. 2025-09-16 16:02:38 +03:00
arabcoders
7ad2bd6358 [FEAT] Add per extractor limits. Closes #421 2025-09-14 21:58:54 +03:00
arabcoders
1ce7c82d9c improve logic for codec selection 2025-09-14 01:30:34 +03:00
arabcoders
38e1828ec3 support using gpu codecs for player 2025-09-13 19:49:48 +03:00
arabcoders
f490c78179 removed deprecated features and flags 2025-09-12 20:38:09 +03:00
arabcoders
669f70d9b8 fixes 2025-09-12 19:34:12 +03:00
arabcoders
adb72f4584 better base_path support. 2025-09-05 12:54:41 +03:00
arabcoders
bdb6d0e36a FEAT: Update default presets 2025-09-03 23:49:19 +03:00
arabcoders
551daf6b70 removed sentry as we really don't use it for anything. 2025-09-03 21:04:12 +03:00
arabcoders
53949b177a FEAT: Enable file browser feature by default and remove related environment variable 2025-09-03 19:34:55 +03:00
arabcoders
fa15576608 Refactor logging setup and enhance user site directory management in PackageInstaller and Upgrader 2025-09-02 04:59:07 +03:00
arabcoders
ed4bb1e440 finalizing removed features 2025-08-30 01:50:42 +03:00
arabcoders
fd999211ef add deprecated notice. 2025-08-29 18:41:13 +03:00
arabcoders
deed79b8d2 major refactor of archive_file handling 2025-08-29 18:41:13 +03:00
arabcoders
70e06f0122 remove webview in favor of using built-in browser. 2025-08-25 22:24:04 +03:00