Refactor media source handling and update collection options

- Updated `IMediaSourceCatalog` to support user-added media sources, allowing dynamic editing and management of sources.
- Removed the `UrlListSource` class as its functionality is now integrated into the new catalog structure.
- Enhanced `CollectOptions` to default `RequireProxy` to true, ensuring stricter handling of proxy requirements.
- Improved error handling in `ParseError` to include a `Subject` field for better context on failures.
- Adjusted dependency injection to reflect changes in media source management, removing old source registrations.
- Introduced background proxy checks to ensure a more robust proxy pool management during collection processes.

These changes streamline the media collection process and improve the overall user experience by providing clearer error reporting and more flexible source management.
This commit is contained in:
Leonid Pershin
2026-08-15 14:20:06 +03:00
parent a4a0ea9a6b
commit eb5061ee23
63 changed files with 5165 additions and 1557 deletions
@@ -36,7 +36,12 @@ public static class UiServiceCollectionExtensions
services.AddSingleton<ILocalizationService, LocalizationService>();
services.AddSingleton<INavigationService, NavigationService>();
services.AddSingleton<DashboardViewModel>();
services.AddSingleton<DashboardViewModel>(static sp => new DashboardViewModel(
sp.GetRequiredService<IMediaSourceCatalog>(),
sp.GetRequiredService<IAppPaths>(),
sp.GetRequiredService<IProxyPool>(),
sp
));
services.AddSingleton<SettingsViewModel>(static sp => new SettingsViewModel(
sp.GetRequiredService<ISettingsService>(),
sp.GetRequiredService<IThemeService>(),