Git Product home page Git Product logo

Comments (4)

TuxPaper avatar TuxPaper commented on July 3, 2024

BiglyBT's implementation of recently-active is a bit different than Transmission.

  1. "recently active" is based on any changes to the values of any fields you request.

  2. 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.

  3. 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.

Macie73 avatar Macie73 commented on July 3, 2024

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.

Macie73 avatar Macie73 commented on July 3, 2024

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.

parg avatar parg commented on July 3, 2024

nice ;)

from biglybt-plugin-xmwebui.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.