added download_only_mode to encryption configuration

reloading of mp3s/mp4s only happens if file manager is enabled
This commit is contained in:
Isaac Grynsztein
2020-02-11 16:36:59 -05:00
parent 505b145bb3
commit 77dd96b3b9
2 changed files with 8 additions and 3 deletions

View File

@@ -16,7 +16,8 @@
}, },
"Extra": { "Extra": {
"title_top": "Youtube Downloader", "title_top": "Youtube Downloader",
"file_manager_enabled": true "download_only_mode": false,
"file_manager_enabled": true
} }
} }
} }

View File

@@ -139,7 +139,9 @@ export class AppComponent implements OnInit {
} }
// reloads mp3s // reloads mp3s
this.getMp3s(); if (this.fileManagerEnabled) {
this.getMp3s();
}
} }
}); });
@@ -169,7 +171,9 @@ export class AppComponent implements OnInit {
} }
// reloads mp4s // reloads mp4s
this.getMp4s(); if (this.fileManagerEnabled) {
this.getMp4s();
}
} }
}); });