mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-29 08:00:57 +03:00
Removed @locl dependency for translations
Added CommonModule to fix intellisense Added ability to load json assets by name, and an http call to update youtubedl-material
This commit is contained in:
@@ -94,6 +94,10 @@ export class PostsService {
|
||||
}
|
||||
}
|
||||
|
||||
loadAsset(name) {
|
||||
return this.http.get(`./assets/${name}`);
|
||||
}
|
||||
|
||||
setConfig(config) {
|
||||
return this.http.post(this.path + 'setConfig', {new_config_file: config});
|
||||
}
|
||||
@@ -180,6 +184,11 @@ export class PostsService {
|
||||
return this.http.post(this.path + 'getAllSubscriptions', {});
|
||||
}
|
||||
|
||||
// updates the server to the latest version
|
||||
updateServer() {
|
||||
return this.http.post(this.path + 'updateServer', {});
|
||||
}
|
||||
|
||||
// gets tag of the latest version of youtubedl-material
|
||||
getLatestGithubRelease() {
|
||||
return this.http.get('https://api.github.com/repos/tzahi12345/youtubedl-material/releases/latest');
|
||||
|
||||
Reference in New Issue
Block a user