The import page searches Openverse and the Internet Archive at the same time and lists each source's results as they arrive, with a Quelle column. A multiselect dropdown picks the licenses: Openverse filters on its server, the Internet Archive after the search. Provider texts are translated, and the unused bearer token support is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
495 B
C#
14 lines
495 B
C#
using Radiosender.Models;
|
|
|
|
namespace Radiosender.Services.Providers;
|
|
|
|
// New provider: implement and register in App; import page lists all registered.
|
|
public interface IMusicProvider
|
|
{
|
|
string Name { get; }
|
|
|
|
// licenses: LicenseType codes to keep; null = all.
|
|
/// <exception cref="MusicProviderException">Search failed.</exception>
|
|
Task<IReadOnlyList<MusicTrack>> SearchAsync(string query, IReadOnlySet<string>? licenses = null, CancellationToken cancellationToken = default);
|
|
}
|