meishixiu / note Goto Github PK
View Code? Open in Web Editor NEW笔记
笔记
依照教學設定TG Bot下載完成會通知,但是卻沒有任何訊息通知,請問因該如何設定呢,如果錯誤如何查看錯誤Log,謝謝。
"enable_tg_bot": True,
"tg_chat_id": "@xxxxx"、"tg_bot_token": 這兩組是任選一個方式設定? 還是兩個值都必須設定呢
如果有人和我遇到了下很多很大的文件的时候,由于删除磁盘内下载文件夹的原因导致部分任务文件没来得及上传完就被删除了,请在原作者没有修正这个问题的时候,做如下修正。但是由于本人并不会编程所以不保证不出现更多的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、保存,测试。
按此方法后修改可能遇到删除不及时的问题,即并没有判断上传任务锁中内容究竟是什么只要有上传任务锁就不删除,可能对储存空间重复利用不利,但是受限本人并不会编程所以只能做到这样了期待原作者的更新维护。
上传失败后,输入 bash .../autoupload.sh 报错
.../add_upload_queue.py", line 100, in main(sys.argv[1], sys.argv[2], sys.argv[3])
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.