Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement] rpc torrent-get "available" bitfield #2768

Closed
FezVrasta opened this issue Mar 13, 2022 · 6 comments · Fixed by #3252
Closed

[enhancement] rpc torrent-get "available" bitfield #2768

FezVrasta opened this issue Mar 13, 2022 · 6 comments · Fixed by #3252
Assignees
Labels
Milestone

Comments

@FezVrasta
Copy link

On the desktop client there's a toggle to switch between the "available" and "progress" graph, but from the RPC API I can only find the pieces bitfield.

CleanShot 2022-03-13 at 10 25 22@2x

May someone help me understand how are the two charts created starting from a single bitfield?

Thanks.

@ckerr
Copy link
Member

ckerr commented Mar 13, 2022

Progress matches the pieces bitfield. I don't think there's currently a way to get the available via RPC, but that could be added. @FezVrasta is that what you're looking for?

@FezVrasta
Copy link
Author

Thanks for the information! Yes that's what I'm looking for. Exposing it would be great.

@FezVrasta
Copy link
Author

@ckerr may you also help me understand something about the bitfield? I have a 100% downloaded torrent (Big Buck Bunny from webtorrent if it matters), that shows 132 bits set to true and the rest set to false, this happened only once the download completed, while it was still in progress the number of true bits was coherent with the download progress.

@ckerr ckerr changed the title available vs progress pieces from RPC [enhancement] rpc torrent-get "available" bitfield Mar 13, 2022
@ckerr
Copy link
Member

ckerr commented Mar 13, 2022

@FezVrasta Off the top of my head, I don't know. What version of Transmission is the server running?

@FezVrasta
Copy link
Author

I'm using Transmission for Mac 3.00+ (1459220), but also 3.00+ (a942c67) has the same behavior.

This is the base64 bitfield:

//////////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

@killemov
Copy link

killemov commented Apr 7, 2022

Please name the field "piecesAvailable".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

3 participants