launcher_deot/sys.py/pyaria2_rpc/example_xmlrpc.py
2020-04-29 23:48:00 +08:00

10 lines
207 B
Python

from pyaria2 import Xmlrpc
rpc = Xmlrpc('localhost', 6800)
#resp = rpc.aria2.addUri(['http://music.xyz.com/test.mp3'], {"out": "aa.mp3"})
#print resp
resp2 = rpc.getOption('2089b05ecca3d829')
print resp2