From cf17a7adaf90189b3094aee3546b21d9bddba119 Mon Sep 17 00:00:00 2001 From: Matthew Huntington Date: Sun, 24 Dec 2023 16:03:34 -0500 Subject: [PATCH] movies --- app | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app b/app index fcf1a2c..cd3f715 100755 --- a/app +++ b/app @@ -7,11 +7,16 @@ items=$(curl --location 'https://gethomeroom.com/__proxy__/cluster' \ --data-urlencode 'method=GET' \ --data-urlencode 'headers=' \ --data-urlencode 'body=' \ ---data-urlencode 'csrfToken=55G9WSTNtXWCh9cc5nh1YQ==' | jq -r -c ".body.photos[].imageUrls.print") +--data-urlencode 'csrfToken=55G9WSTNtXWCh9cc5nh1YQ==' | jq -r -c ".body.photos[].videoUrls.fullsize") +#--data-urlencode 'csrfToken=55G9WSTNtXWCh9cc5nh1YQ==' | jq -r -c ".body.photos[].imageUrls.print") index=1 for item in ${items[@]}; do + if [ $item != "null" ]; then + #echo $item + wget -O ~/Downloads/movies/$index.mp4 $item + fi #echo $index #echo $index.jpeg - wget -O images/$index.jpeg $item + #wget -O images/$index.jpeg $item ((index++)) done