forked from hummypkg/webif
updates
git-svn-id: file:///root/webif/svn/pkg/webif/trunk@3513 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
parent
efd7544b8c
commit
c21504b43f
@ -1,7 +1,7 @@
|
|||||||
Package: webif
|
Package: webif
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: web
|
Section: web
|
||||||
Version: 1.3.5-4
|
Version: 1.3.5-5
|
||||||
Architecture: mipsel
|
Architecture: mipsel
|
||||||
Maintainer: af123@hpkg.tv
|
Maintainer: af123@hpkg.tv
|
||||||
Depends: tcpfix,webif-channelicons(>=1.1.24),lighttpd(>=1.4.39-1),jim(>=0.77),jim-oo(>=0.77),jim-sqlite3(>=0.76),jim-cgi(>=0.7-1),jim-binary(>=0.76),service-control(>=2.3),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.5),hmt(>=2.0.10),ssmtp,cron-daemon(>=1.18.3-3),at(>=3.1.18),anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.1.9),webif-charts(>=1.2-1),stripts(>=1.2.5-3),tmenu(>=1.21-2),ffmpeg,id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>=2.0.7),hwctl,nugget(>=0.95),sqlite3(>=3.15.1)
|
Depends: tcpfix,webif-channelicons(>=1.1.24),lighttpd(>=1.4.39-1),jim(>=0.77),jim-oo(>=0.77),jim-sqlite3(>=0.76),jim-cgi(>=0.7-1),jim-binary(>=0.76),service-control(>=2.3),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.5),hmt(>=2.0.10),ssmtp,cron-daemon(>=1.18.3-3),at(>=3.1.18),anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.1.9),webif-charts(>=1.2-1),stripts(>=1.2.5-3),tmenu(>=1.21-2),ffmpeg,id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>=2.0.7),hwctl,nugget(>=0.95),sqlite3(>=3.15.1)
|
||||||
|
@ -31,6 +31,8 @@ if {![dict exists $env SCRIPT_NAME]} {
|
|||||||
|
|
||||||
if {![dict exists $env QUERY_STRING]} { set env(QUERY_STRING) "root" }
|
if {![dict exists $env QUERY_STRING]} { set env(QUERY_STRING) "root" }
|
||||||
|
|
||||||
|
set dir [string map [list "\{root\}" $mroot] $dir]
|
||||||
|
|
||||||
set config [settings new]
|
set config [settings new]
|
||||||
|
|
||||||
set order [cgi_get order -]
|
set order [cgi_get order -]
|
||||||
|
@ -51,7 +51,7 @@ There are no tasks in the queue.
|
|||||||
<button id=refresh>Refresh</button>
|
<button id=refresh>Refresh</button>
|
||||||
<span id=isloading><img src=/img/loading.gif></span>
|
<span id=isloading><img src=/img/loading.gif></span>
|
||||||
</div>
|
</div>
|
||||||
<div class=blood>Last scan: <span id=autolast>retrieving...</span> -
|
<div id=lastscan>Last media scan: <span id=autolast>retrieving...</span> -
|
||||||
scanning every <span id=autofreq>TBC</span> minutes.</div>
|
scanning every <span id=autofreq>TBC</span> minutes.</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,11 @@ function page_refresh(msg)
|
|||||||
window.location.reload(true);
|
window.location.reload(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function dirname(path)
|
||||||
|
{
|
||||||
|
return path.replace(/\/[^\/]*$/, '');
|
||||||
|
}
|
||||||
|
|
||||||
function load()
|
function load()
|
||||||
{
|
{
|
||||||
$('#isloading').show();
|
$('#isloading').show();
|
||||||
@ -26,7 +31,7 @@ function load()
|
|||||||
' value=' + v.qid + '>' +
|
' value=' + v.qid + '>' +
|
||||||
v.qid + '</td>' +
|
v.qid + '</td>' +
|
||||||
'<td>' + v.submitted + '</td>' +
|
'<td>' + v.submitted + '</td>' +
|
||||||
'<td>' + v.file + '</td>' +
|
'<td><a href=# class=file>' + v.file + '</a></td>' +
|
||||||
'<td>' + v.action + ' ' + v.args + '</td>' +
|
'<td>' + v.action + ' ' + v.args + '</td>' +
|
||||||
'<td class="status ' + v.status + '">' + v.status;
|
'<td class="status ' + v.status + '">' + v.status;
|
||||||
if (v.status == 'RUNNING')
|
if (v.status == 'RUNNING')
|
||||||
@ -37,7 +42,7 @@ function load()
|
|||||||
if (v.runtime != '0')
|
if (v.runtime != '0')
|
||||||
s += v.runtime;
|
s += v.runtime;
|
||||||
s += '</td>' +
|
s += '</td>' +
|
||||||
'<td>' + v.log + '</td>' +
|
'<td class=queuelog>' + v.log + '</td>' +
|
||||||
'<td>' + v.last + '</td>' +
|
'<td>' + v.last + '</td>' +
|
||||||
'</tr>';
|
'</tr>';
|
||||||
|
|
||||||
@ -145,6 +150,13 @@ $('#refresh').button({icons:{primary:"ui-icon-refresh"}})
|
|||||||
load();
|
load();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#queuetab').on('click', 'a.file', function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
file = $(this).html();
|
||||||
|
window.location = '/go/browse?dir=' +
|
||||||
|
encodeURIComponent('{root}/' + dirname(file));
|
||||||
|
});
|
||||||
|
|
||||||
setInterval(load, 60000);
|
setInterval(load, 60000);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -37,3 +37,11 @@ div#loading, div#nodata
|
|||||||
color: #ff4000;
|
color: #ff4000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#lastscan
|
||||||
|
{
|
||||||
|
color: #ccc;
|
||||||
|
background: transparent;
|
||||||
|
font-style: italic;
|
||||||
|
padding-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -125,6 +125,8 @@ proc ::auto::runplugin {plugin fn args} {
|
|||||||
if {![exists -proc $rfn]} { return -1 }
|
if {![exists -proc $rfn]} { return -1 }
|
||||||
if {[catch {set ret [uplevel 1 $rfn {*}$args]} msg]} {
|
if {[catch {set ret [uplevel 1 $rfn {*}$args]} msg]} {
|
||||||
log "$rfn: $msg" 0
|
log "$rfn: $msg" 0
|
||||||
|
lassign [info stacktrace] p f l
|
||||||
|
log " $f:$l @ $p" 0
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
return $ret
|
return $ret
|
||||||
@ -136,6 +138,8 @@ proc ::auto::runplugins {fn args} {
|
|||||||
if {![exists -proc $rfn]} continue
|
if {![exists -proc $rfn]} continue
|
||||||
if {[catch {uplevel 1 $rfn {*}$args} msg]} {
|
if {[catch {uplevel 1 $rfn {*}$args} msg]} {
|
||||||
log "$rfn: $msg" 0
|
log "$rfn: $msg" 0
|
||||||
|
lassign [info stacktrace] p f l
|
||||||
|
log " $f:$l @ $p" 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -372,6 +372,8 @@ proc ::auto::runplugin {fn {_plugin ""} args} {
|
|||||||
}
|
}
|
||||||
if {[catch {uplevel 1 {*}$call} msg]} {
|
if {[catch {uplevel 1 {*}$call} msg]} {
|
||||||
log "$rfn: $msg" 0
|
log "$rfn: $msg" 0
|
||||||
|
lassign [info stacktrace] p f l
|
||||||
|
log " $f:$l @ $p" 0
|
||||||
}
|
}
|
||||||
log "<********* $rfn ([elapsed $st] seconds)" 2
|
log "<********* $rfn ([elapsed $st] seconds)" 2
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user