From ed0f4de0ee4d6a881f50c96363493e8e70066fce Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 28 Oct 2015 13:50:29 +0100 Subject: [PATCH] show other cached resolutions while caching item --- static/js/fs.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/fs.js b/static/js/fs.js index 33452832a..73998d412 100644 --- a/static/js/fs.js +++ b/static/js/fs.js @@ -391,7 +391,8 @@ pandora.fs = (function() { resolution = parseInt(fileEntry.name.split('::')[1].split('p')[0]), part = parseInt(fileEntry.name.split('::')[1].split('p')[1].split('.')[0]), key = item + '::' + resolution; - if (!(that.downloads && that.downloads[item])) { + if (!(that.downloads && that.downloads[item] + && that.downloads[item].resolution == resolution)) { files[key] = Ox.extend(files[key] || {}, { added: meta.modificationTime, id: item + '::' + resolution, @@ -419,7 +420,8 @@ pandora.fs = (function() { var item = prefix.name.split('::')[0], resolution = parseInt(prefix.name.split('::')[1]), key = item + '::' + resolution; - if (!(that.downloads && that.downloads[item])) { + if (!(that.downloads && that.downloads[item] + && that.downloads[item].resolution == resolution)) { files[key] = Ox.extend(files[key] || {}, { added: Ox.min(meta.map(function(m) { return m.modificationTime;