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

Ktorrent Scripting/API

Tags: None
(comma "," separated)
abmoraz
Registered Member
Posts
1
Karma
0

Ktorrent Scripting/API

Mon May 12, 2014 2:47 am
Are there white pages, pydocs, or any sort of documentation for Ktorrent scripting/api? All of my Google-fu points me towards ktorrent.org, which doesn't seem to be active.

Any help would be appreciated. Some scripts I'm looking to make:

1. Adapt the "Automatically remove torrent when finished downloading/seeding" to apply based on group(s).
2. Create a "Delete files from torrents" script that will remove unwanted files of various criteria (such as .nfo or .srt)
3. Create a "launch external script". Specifically, I'm looking to automate my HTPC with XBMC. Right now, I use the Syndication plugin to get shows, but I have to manually run a file renamer to get them into the format that XBMC likes. I have it on a cron job at the moment, but I'd rather just fire it when the torrent is done.
ohadc
Registered Member
Posts
3
Karma
0

Re: Ktorrent Scripting/API

Sun Jan 03, 2016 10:11 pm
I've spent few hours looking for the API, and couldn't find the API in one piece.
what i've found:

A. qdbus interface - it seems that most of it has Kross equivalent (in ktorrent module).
just look for ktorrent in qdbusviewer to see the API.

B. I tend to beleave that KTScriptingPlugin module is compiled from this C++ class:

https://quickgit.kde.org/?p=clones%2Fktorrent%2Fashildyakov%2Fktorrent-stream.git&a=blob&h=f62bb37b1d33c20118eb74c3476e9bd0a2c75385&hb=627ea4e03fdf5ed19f706a8bf4b099bc5df218d7&f=plugins%2Fscripting%2Fapi%2Fscriptingmodule.h

You can use it to understand the API of that class (most of appear also in the script that arrives with ktorrent)

good luck and please publish any relevant resource found.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell