From a444cdcbfdd84072038df83db51f88e4876bd0bf Mon Sep 17 00:00:00 2001 From: Lucas Date: Sat, 8 Aug 2020 23:56:54 +0000 Subject: [PATCH] invidious: respect -T --- bin/invidious.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"