Compare commits
No commits in common. "c782daefa7733f0ca04b4ffc57d55dc6995fb7f8" and "df7810ba7b4b400b11992b4ef2f226417c8645f0" have entirely different histories.
c782daefa7
...
df7810ba7b
1 changed files with 2 additions and 5 deletions
|
@ -23,7 +23,7 @@ if ! curl -q localhost:6850 >/dev/null 2>/dev/null; then
|
||||||
echo "> Iniciando aria2..."
|
echo "> Iniciando aria2..."
|
||||||
mkdir -p datos/
|
mkdir -p datos/
|
||||||
cd 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 --auto-file-renaming=false >> ../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 >> ../aria2.log &
|
||||||
sleep 3 # Esperar a que inicie
|
sleep 3 # Esperar a que inicie
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
fi
|
||||||
|
@ -36,10 +36,7 @@ if test "$1" = "reintentar"; then
|
||||||
| grep -o "https\?://[^\"']\+" \
|
| grep -o "https\?://[^\"']\+" \
|
||||||
| lua feed-aria2.lua /dev/stdin \
|
| lua feed-aria2.lua /dev/stdin \
|
||||||
| curl --data "@-" http://localhost:6850/jsonrpc >/dev/null
|
| curl --data "@-" http://localhost:6850/jsonrpc >/dev/null
|
||||||
echo "Terminé de alimentar."
|
echo "Terminé de alimentar. ¡Suerte!"
|
||||||
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
|
elif test -f lista-paginas.zst; then
|
||||||
echo "Voy a descargar las páginas en lista-paginas.zst."
|
echo "Voy a descargar las páginas en lista-paginas.zst."
|
||||||
echo "> Descomprimiendo lista..."
|
echo "> Descomprimiendo lista..."
|
||||||
|
|
Loading…
Reference in a new issue