feat: ani-new: mp4upload provider, android mpv compatibility, episode url fetching fix

This commit is contained in:
2026-05-02 22:53:43 +05:30
parent 3a7cf92d9a
commit a31f9db5c3
2 changed files with 45 additions and 33 deletions
+13
View File
@@ -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
}