GithubHelp home page GithubHelp logo

bangumi_auto_collector-'s Introduction

全自动追番方案

全自动追番机

目前代码已经写完,正在进行测试项目ing

drawingdrawing

说明

本项目根据 qBittorrent, Plex 以及 infuse 搭建 Image 完整教程请移步 自动追番机器建立教程

需要依赖

pip install qbittorrent-api

使用之前

config.json 中填入你的 hostip username password savepath:

{
  "host_ip": "192.168.31.10:8181",
  "username": "admin",
  "password": "adminadmin",
  "savepath": "/downloads/Bangumi",
  "method": "pn"
}

自动下载规则建立

python3 rule_set.py --name <新番名称>

不符合规则的番剧重命名

rename_qb

python3 rename_qb.py --help

目前有三种重命名模式

  • normal: 普通模式,直接重命名,保留番剧字幕组信息。
  • pn: 纯净模式,保留番剧名称和剧集信息,去掉多余信息。

然后运行 rename_qb.py 即可, 如果只想对新番进行重命名,可以在程序中添加添加 categories="Bangumi" 语句

根据 qBittorrent API 自动重命名下载的种子文件,且不会让种子失效。

  • 可以作为 bash 脚本运行,可以直接使用仓库中的 rename.sh
  • 可以构建 crontab 定时运行
  • 可以使用 Docker 部署,详见文末(推荐)
0,30 * * * * python3 /path/rename_qb.py
  • 也可以监测文件夹变化运行。

Docker 部署

可以使用 Docker 部署重命名应用:

docker run -d \
  --name=Bangumi_rename \
  -e HOST=192.168.31.10:8181 \
  -e USER=admin \
  -e PASSWORD=adminadmin \
  -e METHOD=pn \
  -e TIME=1800 \
  estrellaxd/bangumi_rename_qb:latest

docker 有点小 bug 明早再修 TIME 为间隔运行时间,单位为秒

声明

本项目的自动改名规则根据 miracleyoo/anime_renamer 项目

bangumi_auto_collector-'s People

Contributors

estrellaxd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.