This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[Feature Request] Expose in API torrent location and times

Tags: None
(comma "," separated)
User avatar
hook
Registered Member
Posts
205
Karma
0
OS
I'm trying to write a script[1] for KTorrent and the progress has come to a standstill because the API doesn't offer me the data that KTorrent has and that I need.

What I need is the API to give me access to:
  • tor.downloadTime — I'd need to know how long a torrent has been downloading
  • tor.location — I'd need the location where the torrent been recieved from. KTorrent already has that info and you can access it by mouse-over on the torrent entry in the list or by right-clicking it and selecting "Copy Location"

Additionally I would very much like to see this idea on f.k.o implemented. I think I could write a script[2] for it, but automatic grouping seems to me important enough to be incorporated into KTorrent itself already.

If anyone's interested here's the battle plan from my script:
Code: Select all
# ~ Battle Plan ~
#1) get all torrents from the Jamendo tracker
#2) manage the group of Jamendo torrents for easier life (e.g. no pop-up, default download dir)
#3) check reguarly if there's any seeds
#4) if there's no seeds for (let's say) a week do:
#5) get the album ID from the torrent URI and using regexp change it to a HTTP download URL of the same album
#6) stop that torrent
#7) unzip the album and copy its contents into that torrent's folder (and remove the .zip)
#8) check the torrent for faults, so KTorrent now knows that it magically got fully downloaded
#9) start the torrent again so it can be seeded
#10) party :]


--
[1] note: this is my very first script that actually does anything ever
[2] note: it would take a while (for the reason see [1]), if it's even possible with the current API, but I'd want that feature so much that I'm willing to take it on if there's no interesting in getting it into KTorrent itself.


It's time to prod some serious buttock! ;)
George
Moderator
Posts
5421
Karma
1
Expanding the API is on my TODO list, not sure when I can get to this though.
User avatar
hook
Registered Member
Posts
205
Karma
0
OS
George wrote:Expanding the API is on my TODO list, not sure when I can get to this though.


OK, I can understand you've got a lot of work going on.

Well, can't wait to see it, when it happens. Until then I guess, I'll just have to suspend my work on that script — I'll be back! ;)


It's time to prod some serious buttock! ;)
User avatar
hook
Registered Member
Posts
205
Karma
0
OS
Shameless bump :wink:


It's time to prod some serious buttock! ;)


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]