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:
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"ImgTest": {
|
||||
"MissRate": 0.0,
|
||||
"Endpoints": [
|
||||
{
|
||||
"Path": "test1",
|
||||
"MinLength": 6,
|
||||
"MaxLength": 8,
|
||||
"Alphabet": "Alphanumeric",
|
||||
"Extensions": [".jpg"]
|
||||
},
|
||||
{
|
||||
"Path": "test2",
|
||||
"MinLength": 8,
|
||||
"MaxLength": 12,
|
||||
"Alphabet": "Digits",
|
||||
"Extensions": []
|
||||
},
|
||||
{
|
||||
"Path": "test3",
|
||||
"MinLength": 8,
|
||||
"MaxLength": 8,
|
||||
"Alphabet": "HexLower",
|
||||
"Extensions": [".png"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user