Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion ani-cli
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ help_info() {
Specify the video quality
-v, --vlc
Use VLC to play the video
--mpvkt
Use mpvKT to play the video (Android only)
Note: Disable \"Save position on quit\" in mpvKT settings to avoid
resuming from previous episodes
-V, --version
Show the version of the script
-h, --help
Expand Down Expand Up @@ -91,7 +95,8 @@ help_info() {
%s --vlc cyberpunk edgerunners -q 1080p -e 4
%s blue lock -e 5-6
%s -e \"5 6\" blue lock
\n" "${0##*/}" "${0##*/}" "${0##*/}" "${0##*/}" "${0##*/}" "${0##*/}" "${0##*/}" "${0##*/}" "${0##*/}"
%s --mpvkt anime -q 1080p -e 1
\n" "${0##*/}" "${0##*/}" "${0##*/}" "${0##*/}" "${0##*/}" "${0##*/}" "${0##*/}" "${0##*/}" "${0##*/}" "${0##*/}"
exit 0
}

Expand Down Expand Up @@ -322,6 +327,7 @@ play_episode() {
;;
android_mpv) nohup am start --user 0 -a android.intent.action.VIEW -d "$episode" -n is.xyz.mpv/.MPVActivity >/dev/null 2>&1 & ;;
android_vlc) nohup am start --user 0 -a android.intent.action.VIEW -d "$episode" -n org.videolan.vlc/org.videolan.vlc.gui.video.VideoPlayerActivity -e "title" "${allanime_title}Episode ${ep_no}" >/dev/null 2>&1 & ;;
android_mpvkt) nohup am start --user 0 -a android.intent.action.VIEW -d "$episode" -n live.mehiz.mpvkt/.ui.player.PlayerActivity >/dev/null 2>&1 & ;;
*iina*)
[ -n "$subs_flag" ] && subs_flag="--mpv-${subs_flag#--}"
[ -n "$refr_flag" ] && refr_flag="--mpv-${refr_flag#--}"
Expand Down Expand Up @@ -418,6 +424,12 @@ while [ $# -gt 0 ]; do
*) player_function="vlc" ;;
esac
;;
--mpvkt)
case "$(uname -a | cut -d " " -f 1,3-)" in
*ndroid*) player_function="android_mpvkt" ;;
*) die "mpvKT is only available on Android" ;;
esac
;;
-s | --syncplay)
case "$(uname -s)" in
Darwin*) player_function="/Applications/Syncplay.app/Contents/MacOS/syncplay" ;;
Expand Down