mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2026-06-17 07:22:12 +05:30
feat: ani-new: mp4upload provider, android mpv compatibility, episode url fetching fix
This commit is contained in:
+13
@@ -44,6 +44,19 @@ error_linux() {
|
||||
}
|
||||
|
||||
player_droid() {
|
||||
file="/storage/emulated/0/.mpv/mpv.config.mp4"
|
||||
if [ ! -w "$file" ]; then
|
||||
printf "\033[1;31mCannot write\033[0m → $file\n"
|
||||
printf "\033[1;36mRun:\033[0m termux-setup-storage\n\n"
|
||||
printf "\033[1;36mThen:\033[0m\n"
|
||||
printf "- allow storage permission\n"
|
||||
printf "- add → include='$file'\n"
|
||||
printf " 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
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user