diff options
author | xyz <gky44px1999@gmail.com> | 2021-09-04 01:36:24 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-09-04 01:36:24 -0700 |
commit | 85c585e2fa982140eacde2ffe5a8b4f8798d60eb (patch) | |
tree | c7b3551aba294b7234bb7868aa341fe6897ee14e /.local/bin/curlkg | |
parent | c3d8471dc1301a67814f64baf8b520c5d6fea5e3 (diff) |
refactor
Diffstat (limited to '.local/bin/curlkg')
-rwxr-xr-x | .local/bin/curlkg | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/.local/bin/curlkg b/.local/bin/curlkg index 2b6f4f91..dfd7d077 100755 --- a/.local/bin/curlkg +++ b/.local/bin/curlkg @@ -6,7 +6,6 @@ homepage_url='https://node.kg.qq.com/cgi/fcgi-bin/kg_ugc_get_homepage' music_url='https://node.kg.qq.com/cgi/fcgi-bin/fcg_get_play_url' -#tab_space=$(printf '\t') # num seems only 8 and 15 works num=15 tmp_json_file='/tmp/curlkg.json' @@ -41,19 +40,4 @@ done # how to show less aria2c stdout? jq -r '.data.ugclist[]|"'"$music_url"'?shareid=\(.shareid)\n out=\(.title)_\(.time).m4a"' "$tmp_json_file" | aria2c -d "$download_dir" --auto-file-renaming=false -i- - -## ytfzf way with curl only -#data="$(jq -r '.data.ugclist[]|[.shareid,.time,.title]|@tsv' "$tmp_json_file")" -#while IFS=$tab_space read -r shareid time title; do -# filename="$download_dir/${title}_$time.m4a" -# if ! [ -e "$filename" ]; then -# # may need parallel download and control pid for curl to be faster -# curl -L -G --data-urlencode shareid="$shareid" "$music_url" > "$filename" -# else -# echo "$filename exist" -# fi -#done <<- EOF -#$data -#EOF - rm "$tmp_json_file" |