Merge pull request #1 from candrapersada/patch-1

Disable loading of the aria2.conf file
This commit is contained in:
Tanveer Ahmed Ansari
2025-03-12 17:51:37 +05:30
committed by GitHub

2
hls
View File

@@ -90,7 +90,7 @@ fi
printf "\033[2K\r\033[1;35mpieces : %s\n\033[1;33mDownloading.." "$range"
#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" -k'1M' -d "$tmpdir" -i - --download-result=hide --summary-interval=0 --allow-overwrite=true
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" -k'1M' -d "$tmpdir" -i - --download-result=hide --summary-interval=0
else
download "$(seq "$range")"
#redownloading failed pieces