Commit graph

13 commits

Author SHA1 Message Date
Jesse Bate
429f97a60c perf: exclude unused fields from ItemDTO list and WebSocket serialization
Every item_updated WebSocket event and every history/queue list response
was serializing the full ItemDTO including fields the UI never reads.

Add ItemDTO.serialize_for_list() which excludes: options,
template_chapter, temp_dir, total_bytes, total_bytes_estimate,
tmpfilename, archive_id. The global Encoder now uses serialize_for_list()
for all list/event contexts; the full serialize() remains available for
detail endpoints (GET /api/history/{id}).

Mark the excluded fields optional in the TypeScript StoreItem type.
2026-06-10 20:09:13 +09:30
arabcoders
56dbf6fc2d refactor: update test functions to use tmp_path for archive file handling 2026-05-08 21:56:41 +03:00
arabcoders
7ac7039592 chore: tests clean up 2026-05-04 22:23:19 +03:00
arabcoders
c3132858e7 feat: add download_skipped flag to track intentionally skipped downloads 2026-04-10 18:07:05 +03:00
arabcoders
2c5edc64f4 refactor: isolate yt_dlp related code into submodule 2026-01-27 19:36:13 +03:00
arabcoders
7d6dc7ae76 refactor: move presets to db model 2026-01-25 19:17:54 +03:00
arabcoders
b912186502 chore: update tests assertion messages 2026-01-09 18:57:51 +03:00
arabcoders
459dee77db Refactor: try to keep extra information available in all stages of the request process 2026-01-05 17:37:52 +03:00
arabcoders
f32e323309 Refactor: improve linting and formatting 2025-12-30 20:42:50 +03:00
arabcoders
c9de6b9f2f Drop download_archive for generic extractors when using default presets. Fixes #506 2025-12-04 20:04:58 +03:00
arabcoders
27893bcbf9 Add desc & sidecar to item data 2025-09-16 17:00:32 +03:00
arabcoders
215a023da8 Cache calls to frequently called functions 2025-09-15 19:34:03 +03:00
arabcoders
c91f199939 extends tests 2025-09-13 18:35:41 +03:00