Skip to content

Commit

Permalink
Update YT.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenlua authored Sep 6, 2023
1 parent 9312b0c commit ec61875
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/YT.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Taive "https://github.com/ReVanced/$1/releases/download/v${Vsion2##*/}/$1-${Vsio

# Tải json
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')"
echo $vjson

# tải apk
TaiYT(){
Expand Down Expand Up @@ -59,7 +58,7 @@ chmod 777 $lib2

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

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

0 comments on commit ec61875

Please sign in to comment.