diff --git a/README.md b/README.md index 5187cd1..10afc78 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,8 @@ Jupyter notebooks into websites. The following scripts are in the repo. * `wut` --- Feed it an observation ID and it returns if it is a "good", "bad", or "failed" observation. +* `wut-aria-add` --- Add a torrent from the Internet Archive to the aria daemon for downloading. +* `wut-aria-daemon` --- Run an aria daemon for torrent downloads from the Internet Archive. * `wut-audio-archive` --- Downloads audio files from archive.org. * `wut-audio-sha1` --- Verifies sha1 checksums of files downloaded from archive.org. * `wut-compare` --- Compare an observations' current presumably human vetting with a `wut` vetting. diff --git a/wut-aria-add b/wut-aria-add new file mode 100755 index 0000000..da9a284 --- /dev/null +++ b/wut-aria-add @@ -0,0 +1,6 @@ +#!/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())) + diff --git a/wut-aria-daemon b/wut-aria-daemon new file mode 100755 index 0000000..7be2b0e --- /dev/null +++ b/wut-aria-daemon @@ -0,0 +1,23 @@ +#!/bin/bash + +set -x + +mkdir -p ~/log /srv/dl + +aria2c \ + --daemon=true \ + --enable-rpc=true \ + --dir=/srv/dl \ + --rpc-listen-port=4800 \ + --rpc-listen-all=false \ + --rpc-secret=`cat /home/jebba/.aria-secret` \ + --deferred-input=true \ + --disable-ipv6=true \ + --disk-cache=128M \ + --file-allocation=falloc \ + --log-level=notice \ + --log=/home/jebba/log/aria.log \ + --bt-max-open-files=1000 \ + --bt-max-peers=1000 \ + --continue=true +