rendered paste body#test strange deluge 0.6 bug...
import deluge.ui.client as proxy
proxy.set_core_uri('http://localhost:58846')
torrents = proxy.get_session_state()
print torrents
torrent = torrents[0]
proxy.pause_torrent(torrent)
result:
[DEBUG ] core:280 Pausing torrent 0
[WARNING ] core:282 Error pausing torrent 0
[DEBUG ] core:280 Pausing torrent 9
[WARNING ] core:282 Error pausing torrent 9
[DEBUG ] core:280 Pausing torrent 1
[WARNING ] core:282 Error pausing torrent 1
[DEBUG ] core:280 Pausing torrent 8
[WARNING ] core:282 Error pausing torrent 8
[DEBUG ] core:280 Pausing torrent b
[WARNING ] core:282 Error pausing torrent b
[DEBUG ] core:280 Pausing torrent 4
[WARNING ] core:282 Error pausing torrent 4
[DEBUG ] core:280 Pausing torrent a
[WARNING ] core:282 Error pausing torrent a
[DEBUG ] core:280 Pausing torrent c
[WARNING ] core:282 Error pausing torrent c
[DEBUG ] core:280 Pausing torrent 1
[WARNING ] core:282 Error pausing torrent 1
[DEBUG ] core:280 Pausing torrent 6
[WARNING ] core:282 Error pausing torrent 6
[DEBUG ] core:280 Pausing torrent 2
[WARNING ] core:282 Error pausing torrent 2
[DEBUG ] core:280 Pausing torrent 6
[WARNING ] core:282 Error pausing torrent 6
[DEBUG ] core:280 Pausing torrent f
[WARNING ] core:282 Error pausing torrent f
[DEBUG ] core:280 Pausing torrent c
[WARNING ] core:282 Error pausing torrent c
[DEBUG ] core:280 Pausing torrent f
[WARNING ] core:282 Error pausing torrent f
etc....................