]> git.plutz.net Git - serve0/blobdiff - templates/playctl.html.sh
time display for files from directory
[serve0] / templates / playctl.html.sh
index 62fe1d262a1e48105968636462a56cc0e3a6a2cb..8a94bd35ccf1feaa25d60e87931e7051bd1d8553 100755 (executable)
@@ -53,7 +53,7 @@ cat <<EOF
      <!--button type="submit" name="osd" value="progression">Progress</button -->
   </form>
 
-  <span class="info length">$(($length / 60)):$(($length % 60)) min</span>
+  <span class="info length">$(printf "%d:%02d min" $(($length / 60)) $(($length % 60)) )</span>
   <span class="info width" >Width: $width</span>
   <span class="info height">Height: $height</span><br>