Code: Select all
# Deluge Client Integration
This PR adds support for injection to Deluge v2 torrent clients.
- Closes #58
### notes:
- requires RpcUrl uses extractCredential function
- uses JSON-RPC endpoint in deluge's webUI
- utilizes node-fetch library for sending calls
- bare function documentation
- logging and validation of config
- returns InjectionResults properly with appropriate handling
### todo:
- [x] add authentication vs connection errors (timeout/refuse/etc)
- [x] improve the label integration (it's crude atm)
- - [x] conform to current label usage behavior
- [x] remove axios (use node-fetch)
- [x] remove extra delugeWebPassword
- - [x] get deluge's webUrl to be redacted in logging
- [x] more complete logging
- - [x] standardize logging messaging
- [x] transient auth errors handled with limited retry