Skip to content

Commit

Permalink
Fix: json parse error when video is in the json response
Browse files Browse the repository at this point in the history
  • Loading branch information
NeumoNeumo authored Aug 21, 2024
1 parent ad9cf02 commit 30d7771
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/plik.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ set -e
green='\e[0;32m'
endColor='\e[0m'
function jsonValue() {
KEY=$1
sed -e "s/,/\n/g" | sed -e "s/[\"{}]//g" | grep $KEY | cut -d ":" -f2-
echo $(cat | sed -n "s/.*\"$1\":\"\([^\"]*\)\".*/\1/p")
}

function qecho(){
Expand Down

0 comments on commit 30d7771

Please sign in to comment.