BUG: TransmissionClient is incomplete / proof-of-concept only (missing arrQueueId, control methods, status mapping) #63
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description:
The Transmission download client implementation (
server/clients/TransmissionClient.js) is only a partial / proof-of-concept integration despite being listed as a fully supported download client in the README and architecture docs.Detailed Investigation Findings (release/1.7.31)
1. Incomplete
extractArrInfo()SxxEyy) and movie (year in parentheses) patterns but never extractsqueueId.{ type: 'series' | 'movie' }→arrQueueIdandarrTypeare always undefined in the normalized output.2. Incomplete Status Mapping
1(Queued),2(Checking),3(Queued) are handled, but7(TORRENT_IS_CHECKING) is incorrectly mapped to"Unknown"(it should be "Checking").3. Missing Control Methods
DownloadClientbase class interface expectsstartTorrent(),stopTorrent(),removeTorrent(), etc. (part of the Pluggable Download Client Architecture – PDCA).4. Other Robustness Issues
makeRequest().arguments.torrentsin responses → potential runtime errors on unexpected API replies.Impact:
Proposed Solution / Fix Plan:
extractArrInfo()to also returnqueueId(parse from filename or use Transmission'sidfield mapped to Sonarr/Radarr queue).TORRENT_IS_CHECKING→ "Checking").torrent-start,torrent-stop,torrent-remove).Cross-Dependencies:
Suggested Labels:
Kind/Bug, Priority: High, Area/Download Clients, Compat/Non-Breaking (with note that control methods are new)
Affected Versions: All versions since Transmission support was added.