use verbose duration if no runtime exists

This commit is contained in:
j 2012-02-19 12:35:57 +05:30
parent 8da7f15f86
commit b1e8267a87

View file

@ -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'));