#anime #watch #download #tool #cli-tool #search #interactive

已删除 anirust

用于观看和下载动漫的CLI工具

3 个版本

0.1.2 2023年11月6日
0.1.1 2023年11月4日
0.1.0 2023年11月4日

#159 in 视频

Download history • Rust 包仓库 52/week @ 2024-07-07 • Rust 包仓库

每月52次下载

自定义许可

68KB
1.5K SLoC

anirust

Anirust是一个用于观看动漫的CLI工具。

灵感来源于 (☞゚ヮ゚)☞ ani-cli

目录

快速开始

安装Rust和Cargo:如果您还没有安装Rust和Cargo,最简单的方法是使用Rust工具链安装程序 rustup

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

安装anirust:

cargo install anirust

卸载:

cargo uninstall anirust

依赖项

选择视频播放器

  • mpv
  • iina - MacOS上的mpv替代品
  • vlc

下载管理器

  • aria2c - 默认
  • yt-dlp - m3u8下载器
  • ffmpeg - m3u8下载器(备用)
MacOS

要安装Mac OS上所需的依赖项(使用Homebrew),您可以运行

brew install aria2 ffmpeg git yt-dlp && \
brew install --cask iina

为什么选择iina而不是mpv?iina是MacOS上mpv的嵌入式替代品。与OSX UI集成良好。对M1支持优秀。开源。

用法

输入以下命令获取信息:

anirust help

示例

打开交互式菜单

anirust menu

搜索节目集

anirust search berserk

下载一系列节目集

anirust download "chainsaw man" 1 10

自定义配置

可以在 ~/.config/anirust/config.toml 文件中指定自定义设置,例如

[state]
quality = "best"
audio_mode = "sub"
download_dir = "Desktop/anime"

[player]
media_player = "iina"

安装

从源代码
  1. 克隆仓库:使用 git 克隆仓库

    git clone https://github.com/personalshiva/anirust.git
    
  2. 导航到项目目录:

    cd anirust
    
  3. 构建和安装项目:您可以使用Cargo构建和安装项目。要将二进制文件安装到您的 PATH~/.cargo/bin/)中,您可以使用

    cargo install --path .
    

    注意:--path . 参数告诉Cargo在当前目录中安装crate。

依赖项

~16–33MB
~491K SLoC