#!/usr/bin/env bash version=$(curl -sX GET "https://services.sonarr.tv/v1/download/main?version=3" | jq --raw-output '.version') version="${version#*v}" version="${version#*release-}" printf "%s" "${version}"