forked from 0x2620/pandora
use verbose duration if no runtime exists
This commit is contained in:
parent
8da7f15f86
commit
b1e8267a87
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@ pandora.ui.status = function(key, data) {
|
|||
segments.push(Ox.formatDuration(data.runtime, 'short'));
|
||||
if (data.files)
|
||||
segments.push(data.files + ' file' + (data.files != 1 ? 's' : ''));
|
||||
if (data.duration)
|
||||
if (!data.runtime && data.duration)
|
||||
segments.push(Ox.formatDuration(data.duration, 'short'));
|
||||
else if (data.duration)
|
||||
segments.push(Ox.formatDuration(data.duration));
|
||||
if (data.size)
|
||||
segments.push(Ox.formatValue(data.size, 'B'));
|
||||
|
|
Loading…
Reference in a new issue