mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-10 14:11:29 +03:00
Refactored retrieval of categories and improved runtime search of files in category
Fixed issue with editing/saving categories Database queries can now handle nested object paths Code cleanup
This commit is contained in:
@@ -457,15 +457,15 @@ export class PostsService implements CanActivate {
|
||||
return this.http.post<GetPlaylistResponse>(this.path + 'getPlaylist', body, this.httpOptions);
|
||||
}
|
||||
|
||||
getPlaylists(include_categories = false) {
|
||||
return this.http.post<GetPlaylistsRequest>(this.path + 'getPlaylists', {include_categories: include_categories}, this.httpOptions);
|
||||
}
|
||||
|
||||
incrementViewCount(file_uid, sub_id, uuid) {
|
||||
const body: IncrementViewCountRequest = {file_uid: file_uid, sub_id: sub_id, uuid: uuid};
|
||||
return this.http.post<SuccessObject>(this.path + 'incrementViewCount', body, this.httpOptions);
|
||||
}
|
||||
|
||||
getPlaylists() {
|
||||
return this.http.post<GetPlaylistsRequest>(this.path + 'getPlaylists', {}, this.httpOptions);
|
||||
}
|
||||
|
||||
updatePlaylist(playlist: Playlist) {
|
||||
const body: UpdatePlaylistRequest = {playlist: playlist};
|
||||
return this.http.post<SuccessObject>(this.path + 'updatePlaylist', body, this.httpOptions);
|
||||
|
||||
Reference in New Issue
Block a user