mirror of
https://github.com/CoolnsX/hls_downloader.git
synced 2025-12-20 07:15:21 +05:30
share no. of parallel download variable with aria2
This commit is contained in:
committed by
GitHub
parent
cde363a088
commit
55395059d5
2
hls
2
hls
@@ -90,7 +90,7 @@ fi
|
|||||||
printf "\033[2K\r\033[1;35mpieces : $range\n\033[1;33mDownloading.."
|
printf "\033[2K\r\033[1;35mpieces : $range\n\033[1;33mDownloading.."
|
||||||
#downloading .ts data asynchronously
|
#downloading .ts data asynchronously
|
||||||
if command -v aria2c >>/dev/null;then
|
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 -j30 -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 -x16 -s16 -j "$n" -d "$tmpdir" -i - --download-result=hide --summary-interval=0
|
||||||
else
|
else
|
||||||
download "$(seq $range)"
|
download "$(seq $range)"
|
||||||
#redownloading failed pieces
|
#redownloading failed pieces
|
||||||
|
|||||||
Reference in New Issue
Block a user