Torrent added via the feeds show proper date when they were actually added. Torrents added directly to rtorrent, i.e. via watch folders, show the beginning of Unix epoch. Just making a note it is so.
Not sure how to solve this since I don't think rtorrent catalogues the dates particular torrents were added. Maybe flood could look up metafile (.torrent) modification dates directly? But then it would need to know what folders (i.e. watch folders) to scan.
rTorrent doesn't store this value at all, so Flood (and ruTorrent) get around this by setting and consuming a custom property called addtime.
You can configure rTorrent to set this custom property whenever a new torrent is added (via watch folders or whatever) by adding this to your rtorrent config:
system.method.set_key = event.download.inserted_new, loaded_time, "d.custom.set=addtime,$cat=$system.time=;d.save_full_session="
The Flood server sets the value for any torrents it adds (e.g. via RSS feeds or the UI).
Works just fine. Many thanks. Everything is now nicely dated.
One issue, though: Can you somehow let user decide date format? Currently it's the American one, month/day/year and to us Europeans that's damn confusing. An option for day/month/year would be really convenient and intuitive. Also note that it's rtorrent's default, at least under Info/Created.
Many thanks!
Or better, maybe simply read LC_TIME from the environment.
@randomnonsense Please fill the template next time ;)
For any future users, I think the new config format can use the following code:
method.set_key = event.download.inserted_new, loaded_time, "d.custom.set= addtime, (cat, (system.time)); \
d.save_full_session="
Most helpful comment
rTorrent doesn't store this value at all, so Flood (and ruTorrent) get around this by setting and consuming a custom property called
addtime.You can configure rTorrent to set this custom property whenever a new torrent is added (via watch folders or whatever) by adding this to your rtorrent config:
system.method.set_key = event.download.inserted_new, loaded_time, "d.custom.set=addtime,$cat=$system.time=;d.save_full_session="The Flood server sets the value for any torrents it adds (e.g. via RSS feeds or the UI).