Skip to main content

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
listsub sublist, 订阅列表 查看当前用户/群组的订阅列表 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_URL http://127.0.0.1 你的服务器公网地址,用于提供视频观看链接
ACGRIP_URL https://acgrip.art ACG.RIP 的 URL
ACGRIP_INTERVAL 600 爬取 ACG.RIP 的间隔时间(秒),时间越短,提醒越及时,但是会增加服务器压力
QBITTORRENT_HOST localhost:8080 qBittorrent Web UI 的地址
QBITTORRENT_USERNAME admin qBittorrent Web UI 的用户名
QBITTORRENT_PASSWORD adminadmin qBittorrent 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 以上版本

鸣谢

Metadata

Release files for nonebot-plugin-anime-downloader 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-anime-downloader 0.2.2
File Size Uploaded Provenance Actions
nonebot_plugin_anime_downloader-0.2.2.tar.gz 15.0 kB Without provenance Details for nonebot_plugin_anime_downloader-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-anime-downloader 0.2.2
File Interpreter ABI Platform Actions
nonebot_plugin_anime_downloader-0.2.2-py3-none-any.whl Python 3 none any Details for nonebot_plugin_anime_downloader-0.2.2-py3-none-any.whl

Total release size: 32.3 kB

Release files / nonebot_plugin_anime_downloader-0.2.2.tar.gz

Download URL nonebot_plugin_anime_downloader-0.2.2.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
48ffd64ea861969a55cc47f0afff36facb8754c6a747d55987bb587a20276efe
BLAKE2b-256 checksum
How to use checksums
5979fea3e182da0e8715ccf2a40ff6385e30ec50acb12d0ed65a367c3324156e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.18.1 CPython/3.10.12 Linux/6.5.0-1025-azure

Release files / nonebot_plugin_anime_downloader-0.2.2-py3-none-any.whl

Download URL nonebot_plugin_anime_downloader-0.2.2-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc80da4c49f1e245f1cac90f00d18480aab6c01049b5bc54f813f3e85ca6f21f
BLAKE2b-256 checksum
How to use checksums
3568f023fb611bac8a13dc013c10a0f093a398c944edf65772b7d19dfb9921cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.18.1 CPython/3.10.12 Linux/6.5.0-1025-azure

Security for nonebot-plugin-anime-downloader 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page