mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-22 04:30:56 +03:00
Added additional protections to verify that the DB is initialized before downloader does
Began work on watching entire subscriptions as a playlist Subscriptions now use the new download manager to download files
This commit is contained in:
@@ -44,5 +44,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<button class="edit-button" color="primary" (click)="editSubscription()" [disabled]="downloading" mat-fab><mat-icon class="save-icon">edit</mat-icon></button>
|
||||
<button class="watch-button" color="primary" (click)="watchSubscription()" mat-fab><mat-icon class="save-icon">video_library</mat-icon></button>
|
||||
<button class="save-button" color="primary" (click)="downloadContent()" [disabled]="downloading" mat-fab><mat-icon class="save-icon">save</mat-icon><mat-spinner *ngIf="downloading" class="spinner" [diameter]="50"></mat-spinner></button>
|
||||
</div>
|
||||
@@ -67,4 +67,10 @@
|
||||
.save-icon {
|
||||
bottom: 1px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.watch-button {
|
||||
left: 90px;
|
||||
position: fixed;
|
||||
bottom: 25px;
|
||||
}
|
||||
@@ -109,8 +109,7 @@ export class SubscriptionComponent implements OnInit, OnDestroy {
|
||||
if (this.subscription.streamingOnly) {
|
||||
this.router.navigate(['/player', {uid: uid, url: url}]);
|
||||
} else {
|
||||
this.router.navigate(['/player', {uid: uid,
|
||||
sub_id: this.subscription.id}]);
|
||||
this.router.navigate(['/player', {uid: uid}]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,4 +170,8 @@ export class SubscriptionComponent implements OnInit, OnDestroy {
|
||||
});
|
||||
}
|
||||
|
||||
watchSubscription() {
|
||||
this.router.navigate(['/player', {sub_id: this.subscription.id}])
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user