Skip to content

Commit

Permalink
Update YT.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenlua authored Jan 1, 2025
1 parent 8405b5c commit c26a431
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/YT.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ echo "- Url: https://github.com/ReVanced/$1/releases/download/v${Vsion1##*/}/$1-
if [ "$DEV" == "Develop" ];then
Vop='-DEV'
Vop2=D
vjson="$(Xem https://github.com/ReVanced/revanced-patches/releases | grep -om1 'ReVanced/revanced-patches/releases/tag/.*dev' | cut -d '"' -f1 | sed -e 's|dev|zzz|g' -e 's|v||g' -e 's|zzz|dev|g' -e 's|\"||g')"
#vjson="$(Xem https://github.com/ReVanced/revanced-patches/releases | grep -om1 'ReVanced/revanced-patches/releases/tag/.*dev' | cut -d '"' -f1 | sed -e 's|dev|zzz|g' -e 's|v||g' -e 's|zzz|dev|g' -e 's|\"||g')"
else
vjson="$(Xem https://github.com/ReVanced/revanced-patches | grep -om1 'ReVanced/revanced-patches/releases/tag/.*\"' | sed -e 's|dev|zzz|g' -e 's|v||g' -e 's|zzz|dev|g' -e 's|\"||g')"
#vjson="$(Xem https://github.com/ReVanced/revanced-patches | grep -om1 'ReVanced/revanced-patches/releases/tag/.*\"' | sed -e 's|dev|zzz|g' -e 's|v||g' -e 's|zzz|dev|g' -e 's|\"||g')"
fi

# tải apk
Expand All @@ -44,11 +44,12 @@ echo "Link: $uak2"
. $HOME/.github/options/YouTube.md

# lấy dữ liệu phiên bản mặc định
echo "- Lấy dữ liệu phiên bản YouTube..."
#echo "- Lấy dữ liệu phiên bản YouTube..."
#Vidon="$(
Xem "https://github.com/ReVanced/revanced-patches/releases/download/v${vjson##*/}/patches.json" > 1.json
#Xem "https://github.com/ReVanced/revanced-patches/releases/download/v${vjson##*/}/patches.json" > 1.json
#| jq -r .[1].compatiblePackages[0].versions[] | tac | head -n1)"

gfffv(){
while true; do
fhjfn=$(($fhjfn + 1))
Vclass="$(jq -r ".[$fhjfn].compatiblePackages[0].name" 1.json 2>/dev/null)"
Expand All @@ -57,6 +58,7 @@ if [ "$Vclass" == "com.google.android.youtube" ] && [ "$Vidon" ];then
break
fi
done
}

# là amoled
[ "$AMOLED" == 'true' ] && amoled2='-Amoled'
Expand Down

0 comments on commit c26a431

Please sign in to comment.