youtube-dl archive can now be used for regular downloads. a new blacklist system exists which subscriptions will shortly follow

Added new setting whether to use youtubedl archive
This commit is contained in:
Isaac Grynsztein
2020-03-15 20:27:06 -04:00
parent e71dc0b5e5
commit 190d1567ca
9 changed files with 202 additions and 81 deletions

View File

@@ -98,11 +98,11 @@ export class PostsService {
return this.http.post(this.path + 'setConfig', {new_config_file: config});
}
deleteFile(name: string, isAudio: boolean) {
deleteFile(name: string, isAudio: boolean, blacklistMode = false) {
if (isAudio) {
return this.http.post(this.path + 'deleteMp3', {name: name});
return this.http.post(this.path + 'deleteMp3', {name: name, blacklistMode: blacklistMode});
} else {
return this.http.post(this.path + 'deleteMp4', {name: name});
return this.http.post(this.path + 'deleteMp4', {name: name, blacklistMode: blacklistMode});
}
}

View File

@@ -93,6 +93,11 @@
<mat-hint><ng-container i18n="Custom args setting input hint">Global custom args for downloads on the home page.</ng-container></mat-hint>
</mat-form-field>
</div>
<div class="col-12 mt-4">
<mat-checkbox color="accent" [(ngModel)]="new_config['Downloader']['use_youtubedl_archive']"><ng-container i18n="Use youtubedl archive setting">Use youtube-dl archive</ng-container></mat-checkbox>
<p>Note: This setting only applies to downloads on the Home page. If you would like to use youtube-dl archive functionality in subscriptions, head down to the Subscriptions section.</p>
</div>
</div>
</div>
</mat-expansion-panel>