Updated invcli to only retrieve audio+video in MP4 format at 720p.

This commit is contained in:
Mid Favila 2021-10-16 21:57:10 -03:00
parent 54362dcf4a
commit 3dbe769423
1 changed files with 3 additions and 2 deletions

5
invcli
View File

@ -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