4 Commits
Author SHA1 Message Date
faumaray 7975f2b38e update
Signed-off-by: faumaray <faumaray@gmail.com>
2026-07-25 23:44:42 +03:00
faumarayandClaude Opus 4.8 51f1651c18 Serialize AppConfig directly via Void::Json reflection
Drop the parallel *Json mirror structs and the ~370 LOC of field-by-field
mapping in ConfigLoader and Core. Api::AppConfig is now reflected straight
to/from JSON:

- ConfigLoader::{loadFromFile,saveToFile} use from_json/to_json<AppConfig>
  directly; a small normalize() keeps the yt-dlp concurrency cap that the
  mapping layer used to enforce.
- Core::{getConfigJson,updateConfigJson} likewise reflect directly, which
  also extends them to honor youtube/features/advanced sections that the
  old hand-mapping silently dropped.
- parseQuality/qualityToString removed — enums serialize by name.

On-disk format change (v3, clean cutover): durations are strings
("30000ms", also accepts "30s"/"5m"/"1h"), enums are names, the proxy is a
nested object (or null) instead of flat proxyType/proxyHost fields, and the
admin/custom sections now round-trip. Verified: build green, a
serialize->parse->deserialize round-trip of AppConfig (incl. a SOCKS5
proxy) passes, and config.example.json loads through the reflection path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 03:00:58 +03:00
faumaray 2bdb63766d Migrate core infrastructure to VoidLibrary 2026-06-22 15:53:23 +03:00
faumaray a583c17916 Initial commit 2026-02-01 23:04:49 +03:00