Comments (4)
BiglyBT's implementation of recently-active is a bit different than Transmission.
-
"recently active" is based on any changes to the values of any fields you request.
-
We assume each "torrent-get" with a "recently-active" has the same field list. This is just lazy programming, as we only cache the last sent "recently-active" list, compare it when a new request comes in, and return the diff. We could fix this to support multiple field lists, but so far we've found no need.
-
If you like to read code, the recently-added stuff is at https://github.com/BiglySoftware/BiglyBT-plugin-xmwebui/blob/master/com/aelitis/azureus/plugins/xmwebui/XMWebUIPlugin.java#L5022
If you are running into issue in point 2, see if you can always use the same field list when calling with "recently-active". If there's a convincing use case for using multiple sets of fields with "recently-active", let me know and I could work on adding support.
But usually the problem is one of the fields you are requesting is constantly changing, thus causing you to get the full list of torrents back each time. If you call "torrent-get" with "recently-active" twice, you only need to compare one torrent from the second result with the same torrent in the first result, and find out which field is different. Hopefully it's one you don't need in the result (you can grab the field value later with a specific call)
Hope that helps!
from biglybt-plugin-xmwebui.
thanks for the response @TuxPaper
so basically what you're saying is to find out those torrents that have changed since the last "torrent-get" call with "recently-active" ids scope, i need to make sure the fields i have selected for this call, need to only include those that only reflect a change that i'm interested in?
and then once that subset is identified run a more specific "torrent-get" call to the the real full details.
thanks for the pointer to the java code, i will sure have a look at it later over the weekend.
I'm primarily seeding torrents that i had downloaded before. So my usecase for the UI revolves around finding those torrents that are actively seeding. So perhaps i should drop the "peersConnected", "activeDate" and "peers" and add perhaps "uploadedEver" instead.
will try that for sure.
thx
from biglybt-plugin-xmwebui.
Closing this ticket as i finally managed to figure this out in Postman. a POST request against /transmission/rpc with a body of the JSON formatted request in raw format is doing the trick for me.
from biglybt-plugin-xmwebui.
nice ;)
from biglybt-plugin-xmwebui.
Related Issues (8)
- Plugin ignores authentication setting
- Better compatibility with Transmission's RPC protocol? HOT 10
- xmwebui not accepting get request parameters HOT 2
- compatibility with Transmission's RPC API + other improvements HOT 13
- Removing Selected Torrent doesn't HOT 1
- Torrent right-click context menu jumps to top left on taphold (touch pad and touch devices)
- Use a pem Certificate HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biglybt-plugin-xmwebui.