From af6689bf4c5ba8167e4f697c1154833e19db4b67 Mon Sep 17 00:00:00 2001 From: Anand Shekhawat Date: Wed, 6 Mar 2024 14:59:48 +0530 Subject: [PATCH] temp2 --- yt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt.sh b/yt.sh index c95f75d..41c4c29 100755 --- a/yt.sh +++ b/yt.sh @@ -40,7 +40,7 @@ dl_yt() { echo "URL2: $url" url="https://www.apkmirror.com$(req "$url" - | grep "downloadButton" | grep "forcebaseapk" | sed -n 's;.*href="\(.*key=[^"]*\)">.*;\1;p')" echo "URL3: $url" -# url="https://www.apkmirror.com$(req "$url" - | grep "please click" | sed -n 's#.*href="\(.*key=[^"]*\)">.*#\1#;s#amp;##p')&forcebaseapk=true" + url="https://www.apkmirror.com$(req "$url" - | grep "please click" | sed 's#.*href="\(.*key=[^"]*\)">.*#\1#')" echo "URL: $url" req "$url" "$2" if [ ! -f $2 ]; then echo failed && exit 1; fi @@ -55,7 +55,7 @@ dl_ytm() { echo "URL2: $url" url="https://www.apkmirror.com$(req "$url" - | grep "downloadButton" | grep "forcebaseapk" | sed -n 's;.*href="\(.*key=[^"]*\)">.*;\1;p')" echo "URL3: $url" - # url="https://www.apkmirror.com$(req "$url" - | grep "please click" | sed -n 's#.*href="\(.*key=[^"]*\)">.*#\1#;s#amp;##p')&forcebaseapk=true" + url="https://www.apkmirror.com$(req "$url" - | grep "please click" | sed 's#.*href="\(.*key=[^"]*\)">.*#\1#')" echo "URL: $url" req "$url" "$2" if [ ! -f $2 ]; then echo failed && exit 1; fi