satnogs-wut/wut-aria-add

7 lines
313 B
Python
Executable File

#!/usr/bin/env python3
import xmlrpc.client as xmlrpclib
s = xmlrpclib.ServerProxy('http://localhost:4800/rpc')
s.aria2.addTorrent("token:yajnuAdCemNathNojdi", xmlrpclib.Binary(open('/srv/dl/satnogs-observations-000100001-000110000/satnogs-observations-000100001-000110000_archive.torrent', mode='rb').read()))