mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2025-08-09 19:09:14 +02:00
broken laptop backup
This commit is contained in:
@@ -38,12 +38,10 @@ case $1 in
|
||||
fi
|
||||
;;
|
||||
|
||||
"songwhip")
|
||||
"getLink")
|
||||
JSON=$(httpGet current)
|
||||
URL=$(echo "$JSON" | jq -r '.url')
|
||||
|
||||
WHIPPED_URL="https://songwhip.com$(curl -s -X POST 'https://songwhip.com/api/songwhip/create' -H 'Content-Type: application/json' --data-raw '{"url":"'"$URL"'","country":"NL"}' | jq -r '.data.item.url')"
|
||||
echo "$WHIPPED_URL"
|
||||
echo "$URL"
|
||||
;;
|
||||
"status")
|
||||
if httpGet current | grep "paused" >/dev/null; then
|
||||
|
Reference in New Issue
Block a user