mirror of
https://github.com/alexta69/metube.git
synced 2026-06-16 16:20:07 +00:00
add the ability to reload 'YTDL_OPTIONS' when file is modified
This commit is contained in:
@@ -39,6 +39,7 @@ export class DownloadsService {
|
||||
queueChanged = new Subject();
|
||||
doneChanged = new Subject();
|
||||
customDirsChanged = new Subject();
|
||||
ytdlOptionsChanged = new Subject();
|
||||
configurationChanged = new Subject();
|
||||
updated = new Subject();
|
||||
|
||||
@@ -98,6 +99,10 @@ export class DownloadsService {
|
||||
this.customDirs = data;
|
||||
this.customDirsChanged.next(data);
|
||||
});
|
||||
socket.fromEvent('ytdl_options_changed').subscribe((strdata: string) => {
|
||||
let data = JSON.parse(strdata);
|
||||
this.ytdlOptionsChanged.next(data);
|
||||
});
|
||||
}
|
||||
|
||||
handleHTTPError(error: HttpErrorResponse) {
|
||||
|
||||
Reference in New Issue
Block a user