mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-04 22:11:28 +03:00
Added ability to download archives from the archive viewer
This commit is contained in:
@@ -139,6 +139,13 @@ export class ArchiveViewerComponent {
|
||||
}
|
||||
}
|
||||
|
||||
downloadArchive(): void {
|
||||
this.postsService.downloadArchive(this.type === 'both' ? null : this.type, this.sub_id === 'none' ? null : this.sub_id).subscribe(res => {
|
||||
const blob: Blob = res;
|
||||
saveAs(blob, 'archive.txt');
|
||||
});
|
||||
}
|
||||
|
||||
openDeleteSelectedArchivesDialog(): void {
|
||||
const dialogRef = this.dialog.open(ConfirmDialogComponent, {
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user