diff --git a/bin/invidious.sh b/bin/invidious.sh index 1a63a26..a738b61 100644 --- a/bin/invidious.sh +++ b/bin/invidious.sh @@ -94,6 +94,6 @@ id=$(get_id "$url") [ ${#id} -eq 11 ] || err "invalid video ID $id" # XXX choose in some clever way -itag=$(torsocks ftp -MVo - "$(api "/api/v1/videos/$id")" | +itag=$($torsocks ftp -MVo - "$(api "/api/v1/videos/$id")" | jq -r ".formatStreams[].itag" | head -n 1) api "/latest_version?id=$id&itag=$itag"