How do I use num_pieces variable in plugin

Suggest, post, or discuss plugins for Deluge
Post Reply
sveindaniel

How do I use num_pieces variable in plugin

Post by sveindaniel »

Hi

I am customizing the Pieces plugin and need to use the variable that tells the total amount of pieces a torrent consist of.
I think that variable is num_pieces, but I am not sure.

So my question is which variable contain the total amount of pieces of a torrent and how do I access that variable in one of the scripts of the Pieces plugin (namely the priority_thread.py script)?

Cheers
Post Reply