torrent id assignation policy
Posted: Sun Dec 17, 2017 5:54 am
Hi!
I am not new on transmission, but I am new on this forum.
I am working in some scripts that communicate with transmission daemon through transmission-remote command. It works so far, so I'm not complaining about it. But for my current script (bash) I need a simple way to obtaining the id of the torrent I just added. Transmission doesn't help much, because it just confirms success. It would be good if it instead or additionaly would return the new id. But anyway, are torrent id's realiable for long periods? I plan to register either id or hash into a database for future handling and it seems to me that id's change with the time. Are torrent id's reused?
OK, another thing. May I assume that the last id for the newly inserted torrent is always the bigger number in the list? Anyway, relying on list browsing is not very efficient. Even if I load it once, if would be better if a successful "--add" would return the id or should it be marked somehow as current torrent and then a "--info" call would yield the results I need.
Any leads?
Thank's in advance
I am not new on transmission, but I am new on this forum.
I am working in some scripts that communicate with transmission daemon through transmission-remote command. It works so far, so I'm not complaining about it. But for my current script (bash) I need a simple way to obtaining the id of the torrent I just added. Transmission doesn't help much, because it just confirms success. It would be good if it instead or additionaly would return the new id. But anyway, are torrent id's realiable for long periods? I plan to register either id or hash into a database for future handling and it seems to me that id's change with the time. Are torrent id's reused?
OK, another thing. May I assume that the last id for the newly inserted torrent is always the bigger number in the list? Anyway, relying on list browsing is not very efficient. Even if I load it once, if would be better if a successful "--add" would return the id or should it be marked somehow as current torrent and then a "--info" call would yield the results I need.
Any leads?
Thank's in advance