Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

date attributes? #16

Closed
justinrush opened this issue Mar 14, 2021 · 3 comments
Closed

date attributes? #16

justinrush opened this issue Mar 14, 2021 · 3 comments

Comments

@justinrush
Copy link
Contributor

It doesn't seem possible to get any date related attributes from the torrents - like date added, completed, created, etc. Am I missing something?

If not, I'd be open to looking at the xmlrpc spec and creating a PR if you are open to PRs. Of course, if you just want to do it, i'm open to that too :)

@mrobinsn
Copy link
Owner

mrobinsn commented Apr 5, 2021

You're correct that those fields aren't currently supported.

I'm not sure I will have time soon to add this but I'd be happy to take a look at PR if you want to dig in..

Looking at the rtorrent reference, I think you'd want to pass through: d.creation_date, d.timestamp.finished, and d.timestamp.started. Docs aren't clear on what the time/date format is, so you'll probably have to play around a little to figure that out and get it converted to a go time.Time.

@justinrush
Copy link
Contributor Author

justinrush commented Apr 11, 2021

added PR

@mrobinsn
Copy link
Owner

Thanks for the contribution! Released in v1.6.0: https://github.com/mrobinsn/go-rtorrent/releases/tag/v1.6.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants