Skip to content
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

</details>

### Tier 2 Support: Windows, WSL, iOS, Steam Deck, FreeBSD
Expand Down
8 changes: 4 additions & 4 deletions ani-cli
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down