Compare commits
2 commits
df7810ba7b
...
c782daefa7
Author | SHA1 | Date | |
---|---|---|---|
c782daefa7 | |||
9a45862984 |
1 changed files with 5 additions and 2 deletions
|
@ -23,7 +23,7 @@ if ! curl -q localhost:6850 >/dev/null 2>/dev/null; then
|
|||
echo "> Iniciando aria2..."
|
||||
mkdir -p datos/
|
||||
cd datos/
|
||||
aria2c --enable-rpc --rpc-listen-all=false --rpc-listen-port=6850 --rpc-max-request-size=200M --max-concurrent-downloads=50 --max-connection-per-server=16 --continue >> ../aria2.log &
|
||||
aria2c --enable-rpc --rpc-listen-all=false --rpc-listen-port=6850 --rpc-max-request-size=200M --max-concurrent-downloads=50 --max-connection-per-server=16 --continue --auto-file-renaming=false >> ../aria2.log &
|
||||
sleep 3 # Esperar a que inicie
|
||||
cd ..
|
||||
fi
|
||||
|
@ -36,7 +36,10 @@ if test "$1" = "reintentar"; then
|
|||
| grep -o "https\?://[^\"']\+" \
|
||||
| lua feed-aria2.lua /dev/stdin \
|
||||
| curl --data "@-" http://localhost:6850/jsonrpc >/dev/null
|
||||
echo "Terminé de alimentar. ¡Suerte!"
|
||||
echo "Terminé de alimentar."
|
||||
echo "> Moviendo el aria2.log actual a otra ubicación para no volver a descargar cosas..."
|
||||
mv ../aria2.log "../aria2-$(date -Iseconds).log"
|
||||
echo "Listo, ¡suerte!"
|
||||
elif test -f lista-paginas.zst; then
|
||||
echo "Voy a descargar las páginas en lista-paginas.zst."
|
||||
echo "> Descomprimiendo lista..."
|
||||
|
|
Loading…
Reference in a new issue