broken laptop backup

This commit is contained in:
2024-12-07 15:43:05 +01:00
parent 08585df3ac
commit 5aac22cb6d
13 changed files with 198 additions and 89 deletions

View File

@@ -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