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