Giter VIP home page Giter VIP logo

aria2-python-script's Introduction

aria2-python-script

为TrueNAS CORE的Aria2添加下载完成自动推送通知等功能。

基本功能

  • 从“正在下载”删除任务时,自动删除未下载完文件、.aria2文件以及种子文件。
  • BT任务下载完成时,自动删除种子。
  • 任务下载完成时,自动推送通知到手机。

支持通过Bark和Server酱两种方式推送通知到手机。

如何使用

  • 将scripts文件夹上传到aria2.conf目录下。
  • 安装依赖模块

pip install magneturi

  • 将device-key或send-key填入aria2.py

"device_key": "your_device_key"

send_key = "your_send_key"

  • 在complete.py中打开或关闭消息推送

#push2bark(get_contents()) #默认关闭,打开删除前面的"#"。

#push2serverchen(get_contents()) #默认关闭,打开删除前面的"#"。

  • 配置aria2.conf

on-download-stop=/your_aria2.conf_path/scripts/stop.sh

on-download-complete=/your_aria2.conf_path/scripts/complete.sh

  • 重启Aria2

aria2-python-script's People

Contributors

j0ins08 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.