rtorrent icon indicating copy to clipboard operation
rtorrent copied to clipboard

[Request] Add 'added' date to RPC

Open owenashurst opened this issue 5 years ago • 5 comments

Are there any plans to add an 'added' date to RPC when getting the torrents list? Just noticed this is a missing feature so that clients don't have to hold their own database of when torrents were added.

owenashurst avatar Nov 28 '20 22:11 owenashurst

All that needs is 2 lines of config, so just add it.

pyroscope avatar Nov 28 '20 23:11 pyroscope

All that needs is 2 lines of config, so just add it.

Sorry, I'm not sure where or what you mean. Would that allow it to come through over RPC?

owenashurst avatar Nov 28 '20 23:11 owenashurst

https://github.com/pyroscope/pyrocore/search?q=tm_downloaded

pyroscope avatar Nov 30 '20 19:11 pyroscope

https://github.com/pyroscope/pyrocore/search?q=tm_downloaded

Correct me if I'm wrong, "pyro._tm_downloaded_init" this is using your third party software isn't it? Is there not a native way?

owenashurst avatar Dec 01 '20 12:12 owenashurst

Never mind. I realised that RuTorrent sends a request with a key value of "cmd" and "d.custom=addtime". Combined with the key value of "mode" and "list", it adds an extra string onto the array of the torrent hash in the response that is the added datetime. All I needed to do was multiply this by 1000 and then parse it as a DateTime which then matched what the web interface displayed.

owenashurst avatar Dec 01 '20 15:12 owenashurst