]> git.plutz.net Git - serve0/blobdiff - view.sh
improved time formatting
[serve0] / view.sh
diff --git a/view.sh b/view.sh
index 8854c4801e558939bb64447086c68d09952b32c6..c08be24fa1a662a98bcb2bd88b3e4e01f03e0185 100644 (file)
--- a/view.sh
+++ b/view.sh
@@ -32,7 +32,7 @@ printf 'Content-Type: text/html;charset=utf-8\r\n\r\n'
   [a "javascript:stereoview(180, document.getElementById("mainvideo"));" View 180° Stereoscopic]
   [a "javascript:stereoview(360, document.getElementById("mainvideo"));" View 360° Stereoscopic]
   [video #mainvideo controls="controls" [source src="?a=download" type="video/mp4"]]
-  [span .time %i:%imin] [span .dim %ix%i] %s
+  [span .time %i:%02imin] [span .dim %ix%i] %s
   ' "$(HTML "${ITEM##*/}" |sed -r "$w_ascii"' s;[^0-9a-zA-Z&#];&[wbr];g')" \
     "$((length / 60))" "$((length % 60))" "$width" "$height" \
     "$(printf '%s\n' "${tags#tags=}" |sed -r "$UNSTRING"'