From 390169bd2dcaeb719c436f75afd4aab3d4ed3f09 Mon Sep 17 00:00:00 2001 From: coolnsx Date: Sat, 2 May 2026 23:53:20 +0530 Subject: [PATCH] Fixed everything. --- .functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.functions b/.functions index 1547ffc..7f34548 100644 --- a/.functions +++ b/.functions @@ -49,6 +49,7 @@ player_droid() { if [ -w "${dir%*/.mpv}" ]; then [ -d "${dir}" ] || mkdir "${dir}" printf "%s" "$3" | sed 's| --|\n|g; s|^--||g' > "$file" + sleep 10 && : > "$file" & else printf "\n\033[1;31mCannot write\033[0m → $file\n" printf "\033[1;36mRun:\033[0m termux-setup-storage\n\n" @@ -56,6 +57,7 @@ player_droid() { printf "> allow storage permission\n" printf "> add → include='$file'\n" printf " to MPV → Settings > Advanced > mpv.conf\n" + printf " Make sure to press enter after pasting the content above for MPV to recognise it.." fi am start --user 0 -a android.intent.action.VIEW -d "$1" -n is.xyz.mpv/.MPVActivity -e "title" "$2" >/dev/null 2>&1 #am start --user 0 -a android.intent.action.VIEW -d "$1" -n org.videolan.vlc/org.videolan.vlc.gui.video.VideoPlayerActivity -e "title" "$2" >/dev/null 2>&1