Closed http403 closed 6 years ago
The signature for core.get_torrent_status
can be found here: https://github.com/deluge-torrent/deluge/blob/26441693769047b460a46faf8a2440896bbd3c79/deluge/core/core.py#L601
That means you'd call it like this
get_torrent_status('53c17c8ab411ce3c79bc29addeb04047921d5c27', [])
That translate into
client.call('core.get_torrent_status', '53c17c8ab411ce3c79bc29addeb04047921d5c27', [])
The filter_dict
is an argument for get_torrents_status
(notice the plural torrentS) and can be used like this.
get_torrents_status({'id': '53c17c8ab411ce3c79bc29addeb04047921d5c27'}, [])
which translates into
client.call('core.get_torrents_status', {'id': '53c17c8ab411ce3c79bc29addeb04047921d5c27'}, [])
The syntax design is very similar to the one used in Twisted Python where function_name(args, kwargs) is translated into wrapper(function_name, args, kwargs).
I'm trying to get a specific torrent data using
core.get_torrent_status
. However, no matter what I put into the arguments, it return a empty dictionary.Here're some scripts I tried:
1.
2.
3.
4.
Am I did something wrong? How can I make it work?