mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-25 14:10:57 +03:00
Implemented basic db-based archive functionality, converted old archive functionality to new system
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { FileType } from './FileType';
|
||||
|
||||
export type DownloadArchiveRequest = {
|
||||
sub: {
|
||||
archive_dir: string;
|
||||
};
|
||||
type?: FileType;
|
||||
sub_id?: string;
|
||||
};
|
||||
@@ -434,8 +434,8 @@ export class PostsService implements CanActivate {
|
||||
return this.http.post<SuccessObject>(this.path + 'uploadCookies', fileFormData, this.httpOptions);
|
||||
}
|
||||
|
||||
downloadArchive(sub) {
|
||||
const body: DownloadArchiveRequest = {sub: sub};
|
||||
downloadArchive(type: FileType, sub_id: string) {
|
||||
const body: DownloadArchiveRequest = {type: type, sub_id: sub_id};
|
||||
return this.http.post(this.path + 'downloadArchive', body, {responseType: 'blob', params: this.httpOptions.params});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user