Coder Social home page Coder Social logo

note's Introduction

note's People

Contributors

meishixiu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

note's Issues

删除下载文件时未对是否正在进行上传进行检测的提醒

如果有人和我遇到了下很多很大的文件的时候,由于删除磁盘内下载文件夹的原因导致部分任务文件没来得及上传完就被删除了,请在原作者没有修正这个问题的时候,做如下修正。但是由于本人并不会编程所以不保证不出现更多的bug,慎用,建议等待原作者进行修改。
1、打开clean_down.py,在开头添加import redis,因为我们要让这个py连接一下redis。
2、在def main():中 conf = config.read()之后换行添加如下两行
r = redis.Redis(host=conf['redis_host'] , port=conf['redis_port'], db=conf['redis_db'], password=conf['redis_password'])
x = r.get("upload_queue_lock")
这两行为照抄原作者work_upload.py中连接redis,获取上传任务锁的代码。
3、在def main():中if aria2_get_global_stat(conf['api'], conf['token'])之后不换行添加 and x is None,注意冒号应当在最后,即整行语句为if aria2_get_global_stat(conf['api'], conf['token']) and x is None :
此语句为同时判断如果没有任务且上传任务锁中没有内容再删除下载文件夹。
4、保存,测试。
按此方法后修改可能遇到删除不及时的问题,即并没有判断上传任务锁中内容究竟是什么只要有上传任务锁就不删除,可能对储存空间重复利用不利,但是受限本人并不会编程所以只能做到这样了期待原作者的更新维护。

問題-Telegram Bot 通知

依照教學設定TG Bot下載完成會通知,但是卻沒有任何訊息通知,請問因該如何設定呢,如果錯誤如何查看錯誤Log,謝謝。

"enable_tg_bot": True,
"tg_chat_id": "@xxxxx"、"tg_bot_token": 這兩組是任選一個方式設定? 還是兩個值都必須設定呢

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.