diff --git a/README.md b/README.md index 67b471ab8..4bb274036 100644 --- a/README.md +++ b/README.md @@ -164,18 +164,6 @@ For players you can use the apk (playstore/fdroid) versions of mpv and vlc. Note pkg install openssl-tool ``` -**Important Note:** To get all providers working with android MPV, Please follow below steps: -- Run this command and allow storage permissions: -```sh -termux-setup-storage -``` -- Go to MPV > Settings > Advanced > mpv.conf -- add this line: -```txt -include="/storage/emulated/0/mpv/mpv.config.mp4" -``` -- Make sure to have storage (photos and videos on newer android) permission allowed to both MPV and termux. These permissions are asked by mpv if you click on the "file picker (legacy)" option. - ### Tier 2 Support: Windows, WSL, iOS, Steam Deck, FreeBSD diff --git a/ani-cli b/ani-cli index 37a18368c..70e5ba871 100755 --- a/ani-cli +++ b/ani-cli @@ -106,7 +106,7 @@ version_info() { update_script() { printf "[branch:%s] Checking for Update..\n" "$branch" - update="$(curl --fail-with-body -sL -A "$agent" "https://raw.githubusercontent.com/pystardust/ani-cli/$branch/ani-cli")" || die "[branch:$branch] Connection error: $update" + update="$(curl --fail-with-body -sL -A "$agent" -H "Accept: application/vnd.github.v3.raw" "https://api.github.com/repos/pystardust/ani-cli/contents/ani-cli?ref=$branch")" || die "[branch:$branch] Connection error: $update" printf '%s' "$update" | grep -q "^version_number" || die "[branch:$branch] Invalid Response." update="$(printf '%s\n' "$update" | diff -u "$0" -)" if [ -z "$update" ]; then @@ -138,7 +138,7 @@ where_mpv() { printf "%s" "mpv" && return 0 } -cleanup() { +cleanup_shit() { [ "$player_function" = "android_mpv" ] && : >"/storage/emulated/0/mpv/mpv.config.mp4" printf "\033[0m" # clears colors rm -f "${histfile}.new" # remove temp logfile @@ -607,7 +607,7 @@ case "$player_function" in esac # idk where to put this, so I put it here... -trap 'cleanup; exit 1' INT HUP +trap 'cleanup_shit; exit 1' INT HUP # searching case "$search" in @@ -671,7 +671,7 @@ while cmd=$(printf "next\nreplay\nprevious\nselect\nchange_quality\nquit" | nth select_quality "$new_quality" ;; *) - cleanup + cleanup_shit exit 0 ;; esac