diff options
author | xyz <gky44px1999@gmail.com> | 2021-09-04 02:09:23 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-09-04 02:09:23 -0700 |
commit | 9b7996ae7293fe269fe5b8531fbf8442124b1484 (patch) | |
tree | 0741fbe3612c54c82be44c507cbf4d04ad306987 /.local | |
parent | 85c585e2fa982140eacde2ffe5a8b4f8798d60eb (diff) |
refactor
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/curlkg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/curlkg b/.local/bin/curlkg index dfd7d077..9924d209 100755 --- a/.local/bin/curlkg +++ b/.local/bin/curlkg @@ -26,7 +26,7 @@ download_dir="${1:-"$PWD"}" get_json () { - curl -s -G --data-urlencode type=get_uinfo -d outCharset=utf-8 -d start="$1" -d num=$num -d share_uid="$uid" "$homepage_url" | sed -e 's/^MusicJsonCallback(//' -e 's/)$//' + curl -s -G --data-urlencode type=get_uinfo -d outCharset=utf-8 -d start="$1" -d num=$num -d share_uid="$uid" "$homepage_url" | sed 's/.*({\(.*\)}).*/{\1}/' } # is it possible not to write to a file? only pipe stdout? should I? |