MCPcopy Create free account
hub / github.com/audacity/audacity / GetAudioListUrl

Method GetAudioListUrl

libraries/lib-cloud-audiocom/ServiceConfig.cpp:360–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360std::string ServiceConfig::GetAudioListUrl(
361 int page, int pageSize, std::string_view searchTerm) const
362{
363 if (searchTerm.empty())
364 return Substitute(
365 "{api_url}/my/audio?page={page}&per-page={page_size}",
366 { { "api_url", mApiEndpoint },
367 { "page", std::to_string(page) },
368 { "page_size", std::to_string(pageSize) }, });
369
370 return Substitute(
371 "{api_url}/my/audio?page={page}&per-page={page_size}&q={search_term}",
372 { { "api_url", mApiEndpoint },
373 { "page", std::to_string(page) },
374 { "page_size", std::to_string(pageSize) },
375 { "search_term", searchTerm }, });
376}
377std::string ServiceConfig::GetAudioInfoUrl(std::string_view audioId) const
378{
379 static constexpr auto kAudioFields =

Callers 1

GetAudioListMethod · 0.80

Calls 3

SubstituteFunction · 0.85
to_stringFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected