From 3dbe7694230ad1a3c28bcb28ecaa6fd1e71a3e2d Mon Sep 17 00:00:00 2001 From: Mid Favila Date: Sat, 16 Oct 2021 21:57:10 -0300 Subject: [PATCH] Updated invcli to only retrieve audio+video in MP4 format at 720p. --- invcli | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/invcli b/invcli index e0581d7..aa01fec 100755 --- a/invcli +++ b/invcli @@ -26,7 +26,8 @@ watch_vid() fetch_itag() { - curl --silent $1|sed -ne 's/.*"itag":"\([0-9][0-9]*\)".*/\1/p' + # 22 seems to be the itag associated with audio+video MP4s at 720p... + curl --silent $1|sed -ne 's/.*"itag":"\([0-9][0-9]*\)".*/\1/p' #|grep 22 } fetch_id() @@ -36,7 +37,7 @@ fetch_id() generate_locations() { - for itag in $(fetch_itag $(extract_urls|sed $chosen_video!d)|sed $chosen_video!d) + for itag in 22 #$(fetch_itag $(extract_urls|sed $chosen_video!d)|sed $chosen_video!d) do watch_vid done