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

[solved] openTorrentSilently

Tags: None
(comma "," separated)
imported4-mierdatuti
Registered Member
Posts
32
Karma
0

[solved] openTorrentSilently

Sun Jan 18, 2009 2:10 pm
Hi,

I have ktorrent 3.2 in kde4 in kubuntu 8.1.

Before, I use : ktorrent openTorrentSilenty xxx.torrent

But with this version doen't works, could you say me other way?

Many thanks and sorry for my english

Last edited by imported4-mierdatuti on Wed Jan 21, 2009 10:36 pm, edited 1 time in total.
George
Moderator
Posts
5421
Karma
1

Mon Jan 19, 2009 7:53 am
You were doing this via dcop ?
imported4-mierdatuti
Registered Member
Posts
32
Karma
0

Mon Jan 19, 2009 10:51 am
George wrote:You were doing this via dcop ?


Yes, but now I know that dcop is dead and I must use dbus but I dont know how could I do this with dbus, I need to add a torrent without ask me the program the path where I have to put the dowload.

Thanks,
George
Moderator
Posts
5421
Karma
1

Mon Jan 19, 2009 2:28 pm
mierdatuti wrote:
George wrote:You were doing this via dcop ?


Yes, but now I know that dcop is dead and I must use dbus but I dont know how could I do this with dbus, I need to add a torrent without ask me the program the path where I have to put the dowload.

Thanks,


qdbus org.ktorrent.ktorrent /core loadSilently /path/to/file.torrent ""

Load silently takes two parameters: the path to the torrent and the group name the "" is to tell ktorrent you don't want to put it in a group (i.e. it's an empty string)
imported4-mierdatuti
Registered Member
Posts
32
Karma
0

Mon Jan 19, 2009 6:37 pm
Many thanks but doesn't works me :(

david@portatil:~$ qdbus org.ktorrent.ktorrent /core loadSilently /home/david/ppp.torrent ""
Interface '' not available in object /core at org.ktorrent.ktorrent:
org.freedesktop.DBus.Error.UnknownObject (No such object path '/core')

Code: Select all
david@portatil:~$ qdbus org.ktorrent.ktorrent
/
/KDebug
/KIO
/KIO/Scheduler
/KTorrent
/MainApplication
/ktorrent
/ktorrent/MainWindow_1
/ktorrent/MainWindow_1/actions
/ktorrent/MainWindow_1/actions/file_new
/ktorrent/MainWindow_1/actions/file_open
/ktorrent/MainWindow_1/actions/edit_paste
/ktorrent/MainWindow_1/actions/file_quit
/ktorrent/MainWindow_1/actions/options_show_statusbar
/ktorrent/MainWindow_1/actions/options_show_menubar
/ktorrent/MainWindow_1/actions/options_configure
/ktorrent/MainWindow_1/actions/options_configure_keybinding
/ktorrent/MainWindow_1/actions/options_configure_toolbars
/ktorrent/MainWindow_1/actions/options_configure_notifications
/ktorrent/MainWindow_1/actions/help_contents
/ktorrent/MainWindow_1/actions/help_whats_this
/ktorrent/MainWindow_1/actions/help_report_bug
/ktorrent/MainWindow_1/actions/kubuntu_get_help_online
/ktorrent/MainWindow_1/actions/kubuntu_translate
/ktorrent/MainWindow_1/actions/switch_application_language
/ktorrent/MainWindow_1/actions/help_about_app
/ktorrent/MainWindow_1/actions/help_about_kde
George
Moderator
Posts
5421
Karma
1

Tue Jan 20, 2009 8:48 am
The interface has been changed in the development version, then it should be something like :

qdbus org.ktorrent.ktorrent /KTorrent openSilently xxx.torrent
imported4-mierdatuti
Registered Member
Posts
32
Karma
0

Tue Jan 20, 2009 6:18 pm
George wrote:The interface has been changed in the development version, then it should be something like :

qdbus org.ktorrent.ktorrent /KTorrent openSilently xxx.torrent


Nothing :(

david@defekas:~$ qdbus org.ktorrent.ktorrent /KTorrent openSilently ppp.torrent
Cannot find '.openSilently' in object /KTorrent at org.ktorrent.ktorrent


david@defekas:~$ qdbus org.ktorrent.ktorrent /KTorrent
method int org.ktorrent.KTorrent.downloadSpeed(QString torrent)
method void org.ktorrent.KTorrent.start(QString torrent)
method void org.ktorrent.KTorrent.startAll()
method void org.ktorrent.KTorrent.stop(QString torrent)
method void org.ktorrent.KTorrent.stopAll()
signal void org.ktorrent.KTorrent.torrentAdded(QString tor)
signal void org.ktorrent.KTorrent.torrentRemoved(QString tor)
method QStringList org.ktorrent.KTorrent.torrents()
method int org.ktorrent.KTorrent.uploadSpeed(QString torrent)
method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name, QString property_name)
method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value)
method QString org.freedesktop.DBus.Introspectable.Introspect()

Thanks
George
Moderator
Posts
5421
Karma
1

Wed Jan 21, 2009 9:12 am
It seems that this functionality was added in the 3.2 series. So the 3.1 series doesn't support this.

Anyway, alternatively you can just do :

ktorrent --silent xxx.torrent

This will print out an error saying that ktorrent is already running, but it will load the torrent silently.
imported4-mierdatuti
Registered Member
Posts
32
Karma
0

Wed Jan 21, 2009 10:35 pm
George wrote:It seems that this functionality was added in the 3.2 series. So the 3.1 series doesn't support this.

Anyway, alternatively you can just do :

ktorrent --silent xxx.torrent

This will print out an error saying that ktorrent is already running, but it will load the torrent silently.



Many thanks George! :D :D :D

With -silent it works. I would like to use ktorrent 3.2 but the trackers that I use doesn't allow this client yet :(

When the tracker allows it, I will use ktorrent 3.2 because it looks that one version have more option with dbus.

Many thanks like always!
stoeptegel
Registered Member
Posts
1075
Karma
0

Wed Jan 21, 2009 11:07 pm
mierdatuti wrote:
With -silent it works. I would like to use ktorrent 3.2 but the trackers that I use doesn't allow this client yet :(

When the tracker allows it, I will use ktorrent 3.2 because it looks that one version have more option with dbus.

Many thanks like always!


Which tracker doesn't allow KTorrent ?
imported4-mierdatuti
Registered Member
Posts
32
Karma
0

Thu Jan 22, 2009 6:29 am
stoeptegel wrote:
mierdatuti wrote:
With -silent it works. I would like to use ktorrent 3.2 but the trackers that I use doesn't allow this client yet :(

When the tracker allows it, I will use ktorrent 3.2 because it looks that one version have more option with dbus.

Many thanks like always!


Which tracker doesn't allow KTorrent ?


The tracker allow ktorrent 3.1.x but not 3.2.x. (the trackers it's blackcats)
:(


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]