From 10da1d9fc0a29ba853bf48411bae73db47559ccc Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Sat, 21 Mar 2020 22:01:58 +0800 Subject: [PATCH] luci-app-qbittorrent: fix get port --- .../luasrc/view/qbittorrent/qbittorrent_status.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/lean/luci-app-qbittorrent/luasrc/view/qbittorrent/qbittorrent_status.htm b/package/lean/luci-app-qbittorrent/luasrc/view/qbittorrent/qbittorrent_status.htm index b74111ac0c..b604cd2271 100644 --- a/package/lean/luci-app-qbittorrent/luasrc/view/qbittorrent/qbittorrent_status.htm +++ b/package/lean/luci-app-qbittorrent/luasrc/view/qbittorrent/qbittorrent_status.htm @@ -14,7 +14,7 @@ XHR.poll(3, '<%=url([[admin]], [[nas]], [[qBittorrent]], [[status]])%>', null, ); function openwebui(){ - var url = window.location.host+":<%=luci.sys.exec("uci -q get qbittorrent.config.port"):gsub("^%s*(.-)%s*$", "%1")%>"; + var url = window.location.host+":<%=luci.sys.exec("uci -q get qbittorrent.@qbittorrent[0].port"):gsub("^%s*(.-)%s*$", "%1")%>"; window.open('http://'+url,'target',''); }; //]]>