making WEB

Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-11 00:45:17 +03:00
1 parent d146f11f02
commit 5c036d91fb
72 files changed
+5875 -1243

No files matched your search

+20
View File
@@ -49,12 +49,25 @@ namespace Echoion::Core
search(std::string_view query,
std::optional<std::string> pageToken = std::nullopt);
// Search SoundCloud via yt-dlp (scsearch). Returns SoundCloud
// tracks whose originalUrl is the permalink, streamable through the
// ytdlp-direct source.
[[nodiscard]] Api::Result<Api::SearchResult>
searchSoundCloud(std::string_view query);
// Related tracks for radio autoplay: lists the YouTube "mix"
// playlist (RD<videoId>) via yt-dlp --flat-playlist. Runs through
// the proxy like every yt-dlp call, so it works under SOCKS5.
[[nodiscard]] Api::Result<std::vector<Api::TrackInfo>>
radioMix(const std::string& videoId, size_t limit = 10);
// Fetch music-video candidates for a random search query. Used as a
// radio fallback when no unplayed related track can be found (or
// there is no seed). Goes through yt-dlp/proxy like radioMix; the
// returned list is shuffled so the caller can pick/filter freely.
[[nodiscard]] Api::Result<std::vector<Api::TrackInfo>>
randomMusicVideo(size_t limit = 10);
// Get video details including stream URLs using yt-dlp
[[nodiscard]] Api::Result<Api::TrackInfo>
getVideoInfo(std::string_view videoId);
@@ -156,6 +169,13 @@ namespace Echoion::Core
[[nodiscard]] Api::Result<Api::SearchResult>
searchWithYtDlp(std::string_view query,
const std::optional<std::string>& pageToken);
// Shared yt-dlp search backend. `searchPrefix` is the yt-dlp search
// selector (e.g. "ytsearch5", "scsearch5"); `source` tags the
// resulting tracks and decides how originalUrl is built.
[[nodiscard]] Api::Result<Api::SearchResult>
searchWithYtDlpProvider(std::string_view query,
std::string_view searchPrefix,
Api::TrackSource source);
// Fetch video durations for search results (batch API call)
void fetchVideoDurations(std::vector<Api::TrackInfo>& tracks,