mirror of
https://github.com/alexta69/metube.git
synced 2026-06-17 00:30:07 +00:00
show download totals at the top; debounce download speeds. closes #613
This commit is contained in:
@@ -40,6 +40,7 @@ export class DownloadsService {
|
||||
doneChanged = new Subject();
|
||||
customDirsChanged = new Subject();
|
||||
configurationChanged = new Subject();
|
||||
updated = new Subject();
|
||||
|
||||
configuration = {};
|
||||
customDirs = {};
|
||||
@@ -66,6 +67,7 @@ export class DownloadsService {
|
||||
data.checked = dl.checked;
|
||||
data.deleting = dl.deleting;
|
||||
this.queue.set(data.url, data);
|
||||
this.updated.next(null);
|
||||
});
|
||||
socket.fromEvent('completed').subscribe((strdata: string) => {
|
||||
let data: Download = JSON.parse(strdata);
|
||||
|
||||
Reference in New Issue
Block a user