invidious: respect -T

This commit is contained in:
Lucas 2020-08-08 23:56:54 +00:00
parent db2e270018
commit a444cdcbfd

View File

@ -94,6 +94,6 @@ id=$(get_id "$url")
[ ${#id} -eq 11 ] || err "invalid video ID $id" [ ${#id} -eq 11 ] || err "invalid video ID $id"
# XXX choose in some clever way # 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) jq -r ".formatStreams[].itag" | head -n 1)
api "/latest_version?id=$id&itag=$itag" api "/latest_version?id=$id&itag=$itag"