| 375 | { "search_term", searchTerm }, }); |
| 376 | } |
| 377 | std::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 | |
| 401 | std::string ServiceConfig::GetAudioDownloadListUrl(std::string_view audioId) const { |
| 402 | return Substitute( |
no test coverage detected