mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 22:57:46 +00:00
Updated ani-cli
completions (#969)
Updated, corrected, and added the rest of the completions needed for `ani-cli`
This commit is contained in:
parent
743ccc08ee
commit
c05790d2fc
1 changed files with 44 additions and 16 deletions
|
@ -1,23 +1,51 @@
|
||||||
# authour: DWTW
|
# author: HirschBerge
|
||||||
|
# inspired by DWTW
|
||||||
|
|
||||||
def videoQuality [] {
|
def videoQuality [] {
|
||||||
[ "best", "worst", "360", "480", "720", "1080" ]
|
[ "worst", "360p", "480p", "720p", "1080p", "4K", "best" ]
|
||||||
|
}
|
||||||
|
def common_episodes [] {
|
||||||
|
[ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13" ]
|
||||||
|
}
|
||||||
|
def common_ranges [] {
|
||||||
|
[ "1-5", "5-10", "1-13", "14-26", "1-26" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
# Collaborative cheatsheets for console commands
|
# Anime Search and Streaming Tool
|
||||||
export extern "ani-cli" [
|
export extern "ani-cli" [
|
||||||
string?
|
string?
|
||||||
-q: string@videoQuality # Set video quality
|
-q: int@videoQuality # Specify video quality
|
||||||
-s # Watch using Syncplay
|
--quality: int@videoQuality # Specify video quality
|
||||||
-f # Use FZF for selection
|
-s # Use Syncplay to watch with friends
|
||||||
-a # Specify episode
|
--syncplay # Use Syncplay to watch with friends
|
||||||
-d # Download episode
|
-f # Use FZF for selection
|
||||||
-p # Download episode to specified directory
|
--fzf # Use FZF for selection
|
||||||
-c # Continue watching anime from history
|
-e: string@common_episodes # Specify episode number
|
||||||
-h # Show help text
|
--episode: string@common_episodes # Specify episode number
|
||||||
-D # Delete history
|
-d # Download the episode instead of playing it
|
||||||
-U # Fetch update from github
|
--download # Download the episode instead of playing it
|
||||||
-V # Print version number
|
-p # Download episode to a specified directory
|
||||||
-r # Select provider
|
--path: string # Download episode to a specified directory
|
||||||
-x # Print all video links
|
-c # Continue watching from history
|
||||||
|
--continue # Continue watching from history
|
||||||
|
-h # Show help text
|
||||||
|
--help # Show help text
|
||||||
|
-D # Delete history
|
||||||
|
--delete # Delete history
|
||||||
|
-l # Show logs
|
||||||
|
--log-view # Show logs
|
||||||
|
-U # Update the script
|
||||||
|
--update # Update the script
|
||||||
|
-V # Show the version of the script
|
||||||
|
--version # Show the version of the script
|
||||||
|
-r: string@common_ranges # Specify range number
|
||||||
|
--range: string@common_ranges # Specify range number
|
||||||
|
--skip # Use ani-skip to skip intros (mpv only)
|
||||||
|
--dub # Play dubbed version
|
||||||
|
--rofi # Use rofi instead of fzf for menu
|
||||||
|
--no-detach # Don't detach the player (mpv only)
|
||||||
|
--exit-after-play # Exit after playing (mpv only)
|
||||||
|
--skip-title: string # Use the given title for ani-skip query
|
||||||
|
-N # Display a countdown to the next episode
|
||||||
|
--nextep-countdown # Display a countdown to the next episode
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue