webif/html/sched/list/script.js
:- timeFormat: 'g:ia',
+ timeFormat: 'H:i',
By naked I presume you mean without .hmt or other sidecar files.I was just trying to copy a naked .ts from a UPD into My Video using the WebIF media browser copy&paste, and the paste operation just emptied the paste buffer without actually copying anything. Tried it twice, then resorted to the on-screen menus to do it
You're using Win7 IIRC? It can do that from time to time.I was just trying to copy a naked .ts from a UPD into My Video using the WebIF media browser copy&paste, and the paste operation just emptied the paste buffer without actually copying anything. Tried it twice, then resorted to the on-screen menus to do it
ISTR that the code expects .ts always to have been generated from recordings, even though you can eg youtube-dl a live stream to a .ts and watch it as it grows.By naked I presume you mean without .hmt or other sidecar files.
I think it is the absence of the .hmt is the problem - the webif .ts class methods assume the existence of an hmt to provide the recording details (even though not needed to do a move/copy)
sidecar -h
could be used to create a missing .hmt for a .ts if needed (.nts could also be created for an imported unencrypted file).There are four relevant fields - realloc, pending, offline, spinretry. What I propose is:I think it went with != because a single run of fixdisk doesn't always fix all problems and their may still be some unresolved issues that you should be aware of and acknowledge.
So a better fix would be to skip the Alert box if the values have been reset to zero but retain it for non zero values (even if lower than before)
for each field
{
if value > ack_value
error
else
if value < ack_value
if (field == pending or field == offline)
{
if value > 0
error
else
auto ack
}
else
auto ack
}
Obviously not. Tests OK for me, so will be in the next beta.Can anyone see any flaws with this?
Have fixed this too.I was just trying to copy a naked .ts from a UPD into My Video using the WebIF media browser copy&paste, and the paste operation just emptied the paste buffer without actually copying anything. Tried it twice, then resorted to the on-screen menus to do it
It does for me.From the maintenance mode web page, why doesn't the "exit maintenance mode and reboot" button reload the WebIF?
Not sure I understand exactly what you mean. Perhaps you could document the exact reproduction scenario?The extant URL has "/exit" appended, which does not exist and (when manually refreshed) a redirection page gets served up and then diverts to the WebIF home page in 5 seconds, but when rebooting from Diagnostics there is "/restart" appended without the same problem – the page reloads the WebIF home page without intervention.
I've worked out the sequence of events:Perhaps you could document the exact reproduction scenario?
/etc/init.d/S37bootstrap
). The files for this are in /var/bootstrap
. Although I don't have the source code for this server, strings indicates that it knows about /exit
and /reboot
.lighttpd
) is started in place of bootstrapd
and somehow uses /var/bootstrap
, so finding maint.html
, it would fail to link to the /exit
link, there being no exit.html
or exit/index.jim
, etc, in that directory. This doesn't seem to be what's happening./exit
is that the system reboots, the client may try to re-fetch the same page; when the new (standard) web-server comes up it also has no exit.html
or exit/index.jim
(in /mod/webif/html
) and so the 404 page is served. Probably there should be a redirect page or an alias in /mod/etc/lighttpd/extra.d/
to avoid this.No change (in iOS).Based on the above, try this as new file/mod/etc/lighttpd/extra.d/exitalias.conf
:
This will redirect (which I think is better than directly going to the home page) in 0 seconds flat.Code:alias.url += ( "/exit" => "/index.html", )
What's happening is the page load progress bar stalls and does nothing further, well after the time the reboot should have completed and the web server be up. When I cancelled the load and then hit refresh (URL = /exit), it still went via the "Sorry this page is not available".The iPad doesn't do this. It gives up retrying, and then a manual retry triggers the 404 action.
/sbin/bootstrapd
, so probably not easily./tmp/webif.log
, /tmp/webif-error.log
may have clues.No, it's a configuration file, not executable code.Does it need to be executable?
It makes no difference to the behaviour. /exit does a redirect to / before it ever gets to anything else. There is a 30s delay on that, which clearly is not enough. It fails to load the index page on both my PC and my (iOS) phone, just the standard "server not responding" type of error. Refreshing shortly after that, having allowed extra time for the restart, brings up the normal index page, as expected.OK, try the updated version with the full pathname.