From ca25eed9290aa8f0c503e63748987d1fad6f3a59 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 21 Mar 2015 13:14:01 +0530 Subject: [PATCH] continue downloads if current download is removed --- static/js/fs.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/fs.js b/static/js/fs.js index 6ee7b3ee..921bd149 100644 --- a/static/js/fs.js +++ b/static/js/fs.js @@ -92,6 +92,10 @@ pandora.fs = (function() { if (that.downloads && that.downloads[id] && that.downloads[id].cancel) { that.downloads[id].cancel(); delete that.downloads[id]; + active = false; + if (queue.length) { + cacheVideo.apply(null, queue.shift()); + } } else { pandora.api.get({id: id, keys: ['parts']}, function(result) { var count = result.data.parts * pandora.site.video.resolutions.length, done = 0;