From 2ecf2e3d81c5936b3a7bc54f50936e63b4a5f520 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 22 Mar 2017 18:20:50 -0700 Subject: [PATCH] Add Overall Bitrate to metadata bar --- templates/photo.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/photo.html b/templates/photo.html index 3f2464b..7d221e5 100644 --- a/templates/photo.html +++ b/templates/photo.html @@ -170,9 +170,10 @@
  • Size: {{photo.bytestring()}}
  • {% if photo.duration %}
  • Duration: {{photo.duration_string}}
  • +
  • Overall Bitrate: {{((photo.bytes / 128) / photo.duration)|int}} kbps
  • {% endif %} -
  • Download as {{photo.id}}.{{photo.extension}}
  • -
  • Download as "{{photo.basename}}"
  • +
  • Download as {{photo.id}}.{{photo.extension}}
  • +
  • Download as "{{photo.basename}}"