forgot a contact page woops haha

This commit is contained in:
2026-05-02 23:27:59 +05:30
parent 6b49d77423
commit b7203da49c
+6 -6
View File
@@ -44,18 +44,18 @@ error_linux() {
} }
player_droid() { player_droid() {
file="/storage/emulated/0/.mpv/mpv.config.mp4" dir="/storage/emulated/0/.mpv"
if [ ! -w "$file" ]; then file="$dir/mpv.config.mp4"
if [ -w "${dir%*/.mpv}" ]; then
[ -d "${dir}" ] || mkdir "${dir}"
printf "%s" "$3" | sed 's| --|\n|g; s|^--||g' > "$file"
else
printf "\n\033[1;31mCannot write\033[0m → $file\n" printf "\n\033[1;31mCannot write\033[0m → $file\n"
printf "\033[1;36mRun:\033[0m termux-setup-storage\n\n" printf "\033[1;36mRun:\033[0m termux-setup-storage\n\n"
printf "\033[1;36mThen:\033[0m\n" printf "\033[1;36mThen:\033[0m\n"
printf "> allow storage permission\n" printf "> allow storage permission\n"
printf "> add → include='$file'\n" printf "> add → include='$file'\n"
printf " to MPV → Settings > Advanced > mpv.conf\n" printf " to MPV → Settings > Advanced > mpv.conf\n"
else
mkdir -p "$(printf '%s' "$file" | sed 's|[^/]*$||')"
printf "%s" "$3" | sed 's| --|\n|g; s|^--||g' > "$file"
fi 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 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 #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