aboutsummaryrefslogtreecommitdiff
path: root/ui/src/app/app.component.ts
diff options
context:
space:
mode:
authorAlex <alexta69@gmail.com>2019-12-13 22:43:58 +0200
committerAlex <alexta69@gmail.com>2019-12-13 22:43:58 +0200
commit13e690dd63af0102cf682af79cdceb782da82abf (patch)
tree9e33d5fa85bf0f2ba353a91eae19d6a3af5f1869 /ui/src/app/app.component.ts
parentrecursive add (download entire channels) (diff)
downloadmetube-13e690dd63af0102cf682af79cdceb782da82abf.tar.gz
metube-13e690dd63af0102cf682af79cdceb782da82abf.tar.bz2
metube-13e690dd63af0102cf682af79cdceb782da82abf.zip
add quality selection
Diffstat (limited to 'ui/src/app/app.component.ts')
-rw-r--r--ui/src/app/app.component.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts
index e0961ce..7bb8181 100644
--- a/ui/src/app/app.component.ts
+++ b/ui/src/app/app.component.ts
@@ -11,6 +11,13 @@ import { MasterCheckboxComponent } from './master-checkbox.component';
})
export class AppComponent implements AfterViewInit {
addUrl: string;
+ qualities: Array<Object> = [
+ {id: "best", text: "Best"},
+ {id: "1080p", text: "1080p"},
+ {id: "720p", text: "720p"},
+ {id: "480p", text: "480p"}
+ ];
+ quality: string = "best";
addInProgress = false;
@ViewChild('queueMasterCheckbox', {static: false}) queueMasterCheckbox: MasterCheckboxComponent;
@@ -61,7 +68,7 @@ export class AppComponent implements AfterViewInit {
addDownload() {
this.addInProgress = true;
- this.downloads.add(this.addUrl).subscribe((status: Status) => {
+ this.downloads.add(this.addUrl, this.quality).subscribe((status: Status) => {
if (status.status === 'error') {
alert(`Error adding URL: ${status.msg}`);
} else {
bgstack15