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'));
|
segments.push(Ox.formatDuration(data.runtime, 'short'));
|
||||||
if (data.files)
|
if (data.files)
|
||||||
segments.push(data.files + ' file' + (data.files != 1 ? 's' : ''));
|
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));
|
segments.push(Ox.formatDuration(data.duration));
|
||||||
if (data.size)
|
if (data.size)
|
||||||
segments.push(Ox.formatValue(data.size, 'B'));
|
segments.push(Ox.formatValue(data.size, 'B'));
|
||||||
|
|
Loading…
Reference in a new issue