mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-31 00:50:59 +03:00
Optimized get/set subscription process
This commit is contained in:
@@ -61,9 +61,13 @@ export class EditSubscriptionDialogComponent implements OnInit {
|
||||
];
|
||||
|
||||
constructor(@Inject(MAT_DIALOG_DATA) public data: any, private dialog: MatDialog, private postsService: PostsService) {
|
||||
this.sub = this.data.sub;
|
||||
this.sub = JSON.parse(JSON.stringify(this.data.sub));
|
||||
this.new_sub = JSON.parse(JSON.stringify(this.sub));
|
||||
|
||||
// ignore videos to keep requests small
|
||||
delete this.sub['videos'];
|
||||
delete this.new_sub['videos'];
|
||||
|
||||
this.audioOnlyMode = this.sub.type === 'audio';
|
||||
this.download_all = !this.sub.timerange;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user