mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2026-06-17 07:22:12 +05:30
forgot a contact page woops haha
This commit is contained in:
+6
-6
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user