forked from 0x2620/pandora
continue downloads if current download is removed
This commit is contained in:
parent
de6705a993
commit
ca25eed929
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue