Skip to content

Commit

Permalink
Update XYT.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenlua authored May 7, 2024
1 parent 0521cff commit 6433162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/XYT.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pbdev(){
Vsion2="$(Xem https://github.com/$1/releases | grep -om1 ''$1'/releases/tag/.*dev' | cut -d '"' -f1 | sed -e 's|dev|zzz|g' -e 's|v||g' -e 's|zzz|dev|g' -e 's|\"||g')"
Taive "https://github.com/$1/releases/download/v${Vsion2##*/}/$2-${Vsion2##*/}$4.$3" "lib/$2.$3"; }
# Tải json
vjson="$(Xem https://github.com/inotia00/revanced-patches | grep -om1 'inotia00/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/anddea/revanced-patches | grep -om1 'anddea/revanced-patches/releases/tag/.*\"' | sed -e 's|dev|zzz|g' -e 's|v||g' -e 's|zzz|dev|g' -e 's|\"||g')"

# tải apk
TaiYT(){
Expand All @@ -32,7 +32,7 @@ echo "Link: $uak2"

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

Please sign in to comment.