transmissionrpc
transmissionrpc copied to clipboard
Refactored TorrentSetPayload to include compact list optimization
Refactored TorrentSetPayload to include compact list optimization added the compact function to remove consecutive duplicates from lists, enhancing performance and readability. This change is particularly beneficial for handling tracker lists.
- Implemented the
compactfunction to eliminate duplicate entries in theTrackerList. - Applied this improvement to ensure uniqueness of tracker announcements within the
TorrentSetPayload. - Optimized conversion of seed idle time durations and tracker strings into JSON format, improving data consistency.
This update enhances code robustness against data duplication errors, contributing to increased reliability in the TransmissionRPC client implementation.