cleanup
This commit is contained in:
parent
2641868cff
commit
22d75a7f43
|
@ -77,8 +77,6 @@ class json_rpc:
|
|||
method = json_data["method"]
|
||||
params = json_data["params"]
|
||||
|
||||
log.debug("PP==%s" % json_data["params"])
|
||||
|
||||
if method.startswith('_'):
|
||||
raise Exception('_ methods are illegal.')
|
||||
|
||||
|
@ -113,7 +111,6 @@ class json_rpc:
|
|||
|
||||
#Call:
|
||||
func = getattr(sclient, method)
|
||||
log.debug("PARAMS=%s" % params)
|
||||
result = func(*params)
|
||||
|
||||
return {
|
||||
|
|
|
@ -45,8 +45,7 @@ function get_torrents_status(torrent_ids) {
|
|||
};
|
||||
|
||||
|
||||
function list_torrents(torrent_ids) {
|
||||
//This code will send a data object via a GET request and alert the retrieved data.
|
||||
function list_torrents() {
|
||||
service.get_session_state({params:[],
|
||||
onSuccess:function(torrent_ids){
|
||||
get_torrents_status(torrent_ids)
|
||||
|
|
Loading…
Reference in New Issue