feat: implement download command with examples and enhance downloader structure

This commit is contained in:
Benexl
2025-07-24 22:07:56 +03:00
parent 67a174158d
commit fec09e9b74
10 changed files with 123 additions and 558 deletions

View File

@@ -7,7 +7,7 @@ commands = {
# "trending": "trending.trending",
# "recent": "recent.recent",
"search": "search.search",
# "download": "download.download",
"download": "download.download",
# "downloads": "downloads.downloads",
"auth": "auth.auth",
}

View File

@@ -1,3 +1,44 @@
download = """
\b
\b\bExamples:
# Basic download by title
fastanime anilist download -t "Attack on Titan"
\b
# Download specific episodes
fastanime anilist download -t "One Piece" --episode-range "1-10"
\b
# Download with auto-selection (no prompts)
fastanime anilist download -t "Naruto" --auto-select --silent
\b
# Download with quality preference
fastanime anilist download -t "Death Note" --quality 1080p --episode-range "1-5"
\b
# Download with multiple filters
fastanime anilist download -g Action -T Isekai --score-greater 80 --status RELEASING
\b
# Download recent episodes only
fastanime anilist download -t "Demon Slayer" --episode-range "20:"
\b
# Download with subtitle merging
fastanime anilist download -t "Your Name" --merge --clean
\b
# Download using FFmpeg with HLS options
fastanime anilist download -t "Spirited Away" --force-ffmpeg --hls-use-h264
\b
# Download from a specific season and year
fastanime anilist download --season WINTER --year 2024 -s POPULARITY_DESC --auto-select
\b
# Download only completed series
fastanime anilist download -g Fantasy --status FINISHED --score-greater 75 --auto-select
\b
# Download with verbose output and no certificate checking
fastanime anilist download -t "Akira" --verbose --no-check-certificates
\b
# Download movies only
fastanime anilist download -f MOVIE -s SCORE_DESC --auto-select --quality best
"""
search = """
\b
\b\bExamples: