Add Deluge download client support#740
Open
blackax1 wants to merge 1 commit into
Open
Conversation
|
Oh cool thank you for doing this! Let me test it when I have some time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactors and completes the Deluge download client implementation to align with the new download-client architecture boundaries introduced in PR #599, addressing PR #697.
Changes
Added
DelugeRpcClient.csto centralize HTTP JSON-RPC communications, session authentication, and daemon connectivity.DelugeConnectionTester.csto encapsulate connection testing logic.DelugeAddWorkflow.csto manage torrent submissions (magnets, files, URLs) and category labels.DelugeRemovalWorkflow.csto handle torrent deletions.DelugeQueueFetchWorkflow.csto manage queue monitoring and targeted polling with correct exception handling (DownloadClientAdapterPollingException).DelugeItemFetchWorkflow.csto retrieve active download items.DelugeImportItemResolver.csto resolve files and remote output paths before import.DelugeApiMock.csto mock JSON-RPC responses.Changed
DownloadClientTypes.csto define the"deluge"constant.DownloadClientRegistrationExtensions.csto register the new Deluge workflows and adapter facade in dependency injection.DelugeAdapter.csrefactored as a thin adapter facade delegating to client-specific workflows.MockUtils.csandServiceCollectionBuilder.csupdated to register and configureDelugeApiMockfor tests.DownloadClientWorkflowRegistrationTests.csto verify Deluge workflows and adapter resolve correctly from DI.DelugeAdapterTests.csrewritten to utilize the mock API registration pattern.Testing
dotnet testrun within a.NET SDK 10.0container, 1202/1202 passing).podman build) and verified connectivity, queue updates, and configuration settings with a live Deluge instance.