11 Commits
Author SHA1 Message Date
faumaray 7975f2b38e update
Signed-off-by: faumaray <faumaray@gmail.com>
2026-07-25 23:44:42 +03:00
faumaray 39aff68d8d Update
Signed-off-by: faumaray <faumaray@gmail.com>
2026-07-15 19:49:57 +03:00
faumaray 5c036d91fb making WEB
Signed-off-by: faumaray <faumaray@gmail.com>
2026-07-11 00:45:17 +03:00
faumaray d146f11f02 Release 1.0.0
Signed-off-by: faumaray <faumaray@gmail.com>
2026-07-04 01:49:28 +03:00
faumarayandClaude Opus 4.8 499143050b Implement reload commands; fix SOCKS5 playback; API->yt-dlp search fallback
F1 (reload commands): Core registers itself as Api::ICoreInterface in the
service registry; !reloadconfig and !reload resolve it via ctx.service and
call Core::reloadConfig() (which reloads config.json from disk), replacing
the old placeholder replies.

F2 (SOCKS5 playback): ffmpeg can't use a SOCKS5 proxy, so it connected
directly to the IP-locked googlevideo URL and timed out; the fallback then
buffered the whole (705 MB) body in memory and tripped Void::Net's body
limit. New YouTubeClient::downloadAudioToFile() re-downloads the audio with
yt-dlp (which handles SOCKS5 + writes to disk) by video id and ffmpeg opens
the local file. MusicManager::downloadAudioForPlayback now uses it, and the
play-open path short-circuits straight to the download when the proxy is
SOCKS5 (skipping the doomed ~15 s ffmpeg attempt); HTTP/no-proxy keeps
stream-first-then-download.

F3 (API fallback): YouTubeClient::search() now falls back to yt-dlp when the
Data API path errors (bad/expired key, quota, network), mirroring what
fetchPlaylistItems already did.

Build green; runtime behaviour to be verified on the live bot.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 21:11:20 +03:00
faumarayandClaude Opus 4.8 9d56a6ff01 Consume Void::Net directly in NetworkClient and callers
Delete NetworkClient's to_void_method/to_void_proxy/to_api_response bridge
and the Api::RetryConfig member; the client builds Void::Net::Request, sends
via Void::Net::HttpClient, returns Void::Net::Response, and retries via an
internal Void::Retry policy + retryable-status list.

Call sites updated to Void::Net member names: isSuccess()->ok(),
statusCode->status, getHeader()->header() (optional<string_view>),
isRedirect()->status range check; proxy isValid()->enabled(),
requiresAuth()->has_auth(), isSocks5()->kind == Kind::Socks5. Proxy fields
flow through YtDlpManager/AudioDecoder/MusicManager unchanged in spelling.
On-disk proxy shape is now Void::Net::ProxyConfig (kind: None/Http/Socks5);
config.example.json updated and proxy round-trip verified. Build green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 13:49:26 +03:00
faumarayandClaude Opus 4.8 5775c522eb Phase C: back parallel fan-outs with Void ThreadPool
Replace the per-call std::async OS-thread spawns in the blocking
fan-out/collect paths with a bounded Void::Concurrency::ThreadPool member,
giving thread reuse instead of an unbounded thread per request:

- YouTubeClient: getVideoInfoAsync, getPlaylistAsync, and the two playlist
  resolution batches now submit to pool_. The std::future<T>/.get() join
  semantics are unchanged, so control flow is identical.
- NetworkClient: getAsync/postAsync/requestAsync (and thus requestBatch)
  submit to pool_.

populateShortenedUrls is deliberately left on std::async — it relies on
wide parallelism under a tight 5s budget, which a bounded pool would
throttle. Build green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 03:06:44 +03:00
faumarayandClaude Opus 4.8 f8757d6040 Inline 4 trivial Void delegation shims
Remove YouTubeClient::urlEncode/decodeHtmlEntities/parseIso8601Duration and
StateSerializer::getCurrentTimestampISO8601 — each just forwarded to one Void
call — and have the ~12 call sites call Void directly
(Void::Encoding::Url::encode, Void::Text::html_unescape,
Void::Time::parse_iso8601_interval(...).value_or(0), Void::Time::utc_now_iso8601).

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