找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: bishu***

[2024-03-28] [v4.6.4-1] luci-app-qbittorrent和qbittorrent (多版本)

 火... [复制链接]
发表于 2019-11-25 21:30 | 显示全部楼层
本帖最后由 hong0980 于 2019-11-25 22:00 编辑
bishuiwuhen 发表于 2019-11-25 21:24
谢提醒,已经改过来了

你最好把/usr/lib/lua/luci/controller/qbittorrent.lua附件上我看一下


你看下。还有在WebUI中好好象修改配置不能保存配置文件。按照你的qb版本编译在不去改动WebUI下的日志路径,默认的日志文件不在qb的配置文件下的data中生成。

点评

你发的是我之前发的包吧,你还是先试一下完全使用我发的包,看是否还存在LuCI按钮跳转到http://undefined/的问题 如果是替换luci的相关文件,手动清除一下 /tmp/luci-modulecache/ /tmp/luci-indexcache  详情 回复 发表于 2019-11-25 21:41
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-11-25 21:41 | 显示全部楼层

你发的是我之前发的包吧,你还是先试一下完全使用我发的包,看是否还存在LuCI按钮跳转到http://undefined/的问题

如果是替换luci的相关文件,手动清除一下
/tmp/luci-modulecache/
/tmp/luci-indexcache

点评

谢谢你的回复,不管怎么换新的原版还是不能显示。这个估计适配度小,不纠结了。去换原来的那个luci了。  详情 回复 发表于 2019-11-25 22:05
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-25 22:05 | 显示全部楼层
bishuiwuhen 发表于 2019-11-25 21:41
你发的是我之前发的包吧,你还是先试一下完全使用我发的包,看是否还存在LuCI按钮跳转到http://undefined ...

谢谢你的回复,不管怎么换新的原版还是不能显示。这个估计适配度小,不纠结了。去换原来的那个luci了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-25 22:25 | 显示全部楼层
感谢分享               
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-25 22:34 | 显示全部楼层
我看下内容
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-26 15:29 | 显示全部楼层
本帖最后由 hong0980 于 2019-11-26 15:39 编辑
bishuiwuhen 发表于 2019-11-25 21:24
谢提醒,已经改过来了

你最好把/usr/lib/lua/luci/controller/qbittorrent.lua附件上我看一下
  1. t:tab("log",translate("运行日志"),translate("本页是qBittorrent的日志文档内容。"))
  2. e=t:taboption("log",TextValue,"log",translate(""))
  3. e.rows=20
  4. e.wrap="off"
  5. e.rmempty = false
  6. e.readonly=true
  7. e.cfgvalue=function(t,t)
  8. return i.readfile("/etc/config/qBittorrent/data/logs/qbittorrent.log")or""
  9. end
  10. e.write=function(e,e,e)
  11. end
复制代码


大佬自己弄了个,能显示。怎么样弄才打开直接显示底部文档,以及在return i.readfile("/etc/config/qBittorrent/data/logs/qbittorrent.log")or""用命令自动获取配置文件所在路径,谢谢!

点评

配置文件路径不设置的话,默认在/qBittorrent/data/logs/qbittorrent.log,在UCI里可以直接读取(我的包强制了默认值,不设默认值的话就是所启动用户的主目录,日志目录也/.local/share/data/qBittorrent/logs/qbitt  详情 回复 发表于 2019-11-26 19:14
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-11-26 19:14 | 显示全部楼层
hong0980 发表于 2019-11-26 15:29
大佬自己弄了个,能显示。怎么样弄才打开直接显示底部文档,以及在return i.readfile("/etc/config/q ...

配置文件路径不设置的话,默认在<Path To Profile>/qBittorrent/data/logs/qbittorrent.log,<Path To Profile>在UCI里可以直接读取(我的包强制了默认值,不设默认值的话就是所启动用户的主目录<path to home>,日志目录也<path to home>/.local/share/data/qBittorrent/logs/qbittorrent.log),如果log目录手动设置了的话,去UCI读取。

你要按你现在的做法直接照搬luci-app-amule的做法就可以了,否则你只有每次刷新网页才能读取当前日志(不能定时更新),要么你就把aria2的做法搬过来
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-26 21:03 | 显示全部楼层
本帖最后由 hong0980 于 2019-11-26 21:18 编辑

谢谢大佬回复。还有怎么样弄才会打开直接文档显示底部。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-27 09:41 | 显示全部楼层
这个试试看吧,webui一般也够用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-28 08:11 | 显示全部楼层
谢谢楼主。。。。。。。。。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-28 10:56 来自手机 | 显示全部楼层
可以不用编译了。。。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-28 16:03 | 显示全部楼层
luci-app-qbittorrent和qbittorrent v4.1.9.1
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-29 22:05 | 显示全部楼层
L大已经更新了luci现在的按纽能跳转了。大佬这个bp的patch是什环境下做的,我做出来的patch不一样,diff -Nar a/ b/ > xxx.patch 首字符不是+-的。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-30 00:26 | 显示全部楼层
回复看下如何。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-30 01:11 | 显示全部楼层
支持大佬~~~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 22:03

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表