Socket
Socket
Sign inDemoInstall

nonebot-plugin-anime-downloader

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nonebot-plugin-anime-downloader

✨ 基于 qBittorrent Web UI 的番剧下载 NoneBot 插件 ✨


Maintainers
1

Readme

Nonebot-Plugin-Anime-Downloader

✨ 基于 qBittorrent Web UI 的番剧下载 NoneBot 插件 ✨

介绍

为了解决每周手动下载番剧的痛苦,本插件基于 qBittorrent Web UI 开发,通过轮番爬取 ACG.RIP,实现番剧下载及提醒的自动化

使用了 NoneBot-Plugin-Alconna 实现了跨平台哦

功能

  • 番剧订阅
  • 番剧下载
  • 番剧提醒

使用

命令别名说明示例
sub订阅通过 Tag 订阅番剧sub Up to 21°C Nijiyon Animation 2 MP4
unsub取消订阅通过 Tag 取消订阅番剧unsub Up to 21°C Nijiyon Animation 2 MP4
listsubsublist, 订阅列表查看当前用户/群组的订阅列表sublist
amnsc番剧搜索, 搜索番剧, animesearch通过关键词搜索番剧amnsc Nijiyon Animation 2
amnd番剧下载, 下载番剧, animedownload通过 资源ID 下载番剧amnd 114514

这里的 Tag 就是用来在 ACG.RIP 搜索的关键词,番剧名、分辨率、字幕组等等,只要能在 ACG.RIP 搜索到的都可以

记得加上你的命令头哦

效果

user: /sub Up to 21°C Nijiyon Animation 2 MP4

bot: 订阅成功!

user: /sublist

bot: 您订阅的 Tag 有:

  1. Up to 21°C Nijiyon Animation 2 MP4

(过了一段时间)

bot: [Up to 21°C] Love Live!虹咲學園 學園偶像同好會 短篇動畫 第二季 / Nijiyon Animation 2 - 04 (ABEMA 1920x1080 AVC AAC MP4) 现在可以观看了! http://example.com/anime/302322

user: /amnd 302322

bot: [Up to 21°C] Love Live!虹咲學園 學園偶像同好會 短篇動畫 第二季 / Nijiyon Animation 2 - 04 (ABEMA 1920x1080 AVC AAC MP4) 现在可以观看了! http://example.com/anime/302322

安装方法

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-anime-downloader
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-anime-downloader
pdm
pdm add nonebot-plugin-anime-downloader
poetry
poetry add nonebot-plugin-anime-downloader
conda
conda install nonebot-plugin-anime-downloader

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_steam_info"]

配置

配置项默认值说明
ANIME_URLhttp://127.0.0.1你的服务器公网地址,用于提供视频观看链接
ACGRIP_URLhttps://acgrip.artACG.RIP 的 URL
ACGRIP_INTERVAL600爬取 ACG.RIP 的间隔时间(秒),时间越短,提醒越及时,但是会增加服务器压力
QBITTORRENT_HOSTlocalhost:8080qBittorrent Web UI 的地址
QBITTORRENT_USERNAMEadminqBittorrent Web UI 的用户名
QBITTORRENT_PASSWORDadminadminqBittorrent Web UI 的密码
DOWNLOAD_PATH/downloads种子下载到的路径

注意

  • 安装 qBittorrent 并启用 Web UI
  • NoneBot 的 Driver(驱动器) 需要包含 FastAPI
  • NoneBot 和 qBittorrent 需要在同一台服务器上

关于 ACG.RIP 的访问性问题:

  1. 默认使用的 acgrip.art 域名可以在国内访问,但貌似国外访问不了
  2. 如果你的服务器在国外,可以使用 acg.rip 域名
  3. 环大陆用哪个都可以

常见问题

  • 在 Satori 适配器下,NoneBot-Plugin-Alconna 在 0.45.2 及以前对群聊/私聊的判断有误,导致无法正常使用,建议升级到 0.45.2 以上版本

鸣谢

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc