added new custom args setting

This commit is contained in:
Isaac Grynsztein
2020-03-08 10:15:24 -04:00
parent 881a103051
commit 480ed7d000
5 changed files with 17 additions and 3 deletions

View File

@@ -11,7 +11,8 @@
},
"Downloader": {
"path-audio": "audio/",
"path-video": "video/"
"path-video": "video/",
"custom_args": ""
},
"Extra": {
"title_top": "Youtube Downloader",

View File

@@ -11,7 +11,8 @@
},
"Downloader": {
"path-audio": "audio/",
"path-video": "video/"
"path-video": "video/",
"custom_args": ""
},
"Extra": {
"title_top": "Youtube Downloader",

View File

@@ -34,6 +34,10 @@ let CONFIG_ITEMS = {
'key': 'ytdl_video_folder_path',
'path': 'YoutubeDLMaterial.Downloader.path-video'
},
'ytdl_custom_args': {
'key': 'ytdl_custom_args',
'path': 'YoutubeDLMaterial.Downloader.custom_args'
},
// Extra
'ytdl_title_top': {

View File

@@ -79,6 +79,13 @@
<mat-hint></mat-hint>
</mat-form-field>
</div>
<div class="col-12">
<mat-form-field>
<textarea matInput [(ngModel)]="new_config['Downloader']['custom_args']" placeholder="Custom args" required></textarea>
<mat-hint></mat-hint>
</mat-form-field>
</div>
</div>
</div>
</mat-expansion-panel>

View File

@@ -11,7 +11,8 @@
},
"Downloader": {
"path-audio": "audio/",
"path-video": "video/"
"path-video": "video/",
"custom_args": ""
},
"Extra": {
"title_top": "Youtube Downloader",