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

Method GetAudioInfoUrl

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

Source from the content-addressed store, hash-verified

375 { "search_term", searchTerm }, });
376}
377std::string ServiceConfig::GetAudioInfoUrl(std::string_view audioId) const
378{
379 static constexpr auto kAudioFields =
380 "id,"
381 "slug,"
382 "title,"
383 "tags,"
384 "author_name,"
385 "username,"
386 "date_created,"
387 "date_updated,"
388 "is_public,"
389 "is_downloadable,"
390 "author.id";
391
392 return Substitute(
393 "{api_url}/audio/{audio_id}?fields={fields}&expand=author",
394 {
395 { "api_url", mApiEndpoint },
396 { "audio_id", audioId },
397 { "fields", kAudioFields },
398 });
399}
400
401std::string ServiceConfig::GetAudioDownloadListUrl(std::string_view audioId) const {
402 return Substitute(

Callers 1

GetAudioInfoFunction · 0.80

Calls 1

SubstituteFunction · 0.85

Tested by

no test coverage detected