From 79cc14bba36462f375255e4da2748c368d67c934 Mon Sep 17 00:00:00 2001 From: candrapersada <36833664+candrapersada@users.noreply.github.com> Date: Sun, 25 Jun 2023 07:56:08 +0700 Subject: [PATCH] Disable loading of the aria2.conf file Disable loading aria2.conf file. from `~/.aria2/aria2.aria2.conf` --- hls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hls b/hls index 1111993..5ab9b54 100755 --- a/hls +++ b/hls @@ -90,7 +90,7 @@ fi printf "\033[2K\r\033[1;35mpieces : $range\n\033[1;33mDownloading.." #downloading .ts data asynchronously if command -v aria2c >>/dev/null;then - printf '%s' "$data" | nl -n'rz' | sed -E "s|^([0-9]*)[[:space:]]*(.*)|${relative_url}\2\n\tout=\1.ts|g" | aria2c -x16 -s16 -j "$n" -d "$tmpdir" -i - --download-result=hide --summary-interval=0 + printf '%s' "$data" | nl -n'rz' | sed -E "s|^([0-9]*)[[:space:]]*(.*)|${relative_url}\2\n\tout=\1.ts|g" | aria2c --no-conf=true --enable-rpc=false -x16 -s16 -j "$n" -d "$tmpdir" -i - --download-result=hide --summary-interval=0 else download "$(seq $range)" #redownloading failed pieces