Fixed everything.

This commit is contained in:
2026-05-02 23:53:20 +05:30
parent b7203da49c
commit 390169bd2d
+2
View File
@@ -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