Skip to content

Commit

Permalink
yt.sh: show download info
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhawat2 committed Aug 28, 2023
1 parent be59d3c commit d4d3fce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions yt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ dl_yt() {
url="$url$(req "$url" - | grep Variant -A50 | grep ">APK<" -A2 | grep android-apk-download | sed "s#.*-release/##g;s#/\#.*##g")"
url="https://www.apkmirror.com$(req "$url" - | grep "downloadButton" | sed -n 's;.*href="\(.*key=[^"]*\)">.*;\1;p')"
url="https://www.apkmirror.com$(req "$url" - | grep "please click" | sed -n 's#.*href="\(.*key=[^"]*\)">.*#\1#;s#amp;##p')&forcebaseapk=true"
echo "URL: $url"
req "$url" "$2"
if [ ! -f $1 ]; then echo failed && exit 1; fi
}

dl_ytm() {
Expand All @@ -48,7 +50,9 @@ dl_ytm() {
url="$url$(req "$url" - | grep arm64 -A30 | grep youtube-music | head -1 | sed "s#.*-release/##g;s#/\".*##g")"
url="https://www.apkmirror.com$(req "$url" - | grep "downloadButton" | sed -n 's;.*href="\(.*key=[^"]*\)">.*;\1;p')"
url="https://www.apkmirror.com$(req "$url" - | grep "please click" | sed -n 's#.*href="\(.*key=[^"]*\)">.*#\1#;s#amp;##p')&forcebaseapk=true"
echo "URL: $url"
req "$url" "$2"
if [ ! -f $1 ]; then echo failed && exit 1; fi
}

clone_tools() {
Expand Down

0 comments on commit d4d3fce

Please sign in to comment.