feat(import): add the Internet Archive as a music provider

Searches Creative Commons licensed MP3 audio. A search result there is an
item with several files, so the file list of each item is fetched too and
every MP3 becomes one result. Query operators are removed from the search
words, so they cannot change the license filter.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
fraujulianandClaude Fable 5.2 committed 2026-11-23 15:09:36 +01:00
1 parent a8ccb9b73d
commit d73b9b507f
4 files changed
+280

No files matched your search

+1
View File
@@ -36,6 +36,7 @@ public partial class App : Application
});
// Music providers: add a line here for each new IMusicProvider; the import page lists them all.
services.AddSingleton<IMusicProvider, OpenverseProvider>();
services.AddSingleton<IMusicProvider, InternetArchiveProvider>();
services.AddSingleton(provider => new TrackDownloader(provider.GetRequiredService<System.Net.Http.HttpClient>(), TrackDownloader.DefaultMusicFolder));
services.AddSingleton<OnlineImportController>();
services.AddSingleton(provider => new SongImportService(provider.GetRequiredService<SongRepository>(), SongImportService.DefaultMusicDirectory));