Fix wantToUpscale
All checks were successful
ci / Image build (push) Successful in 2m17s
ci / Deployment (push) Successful in 6s

This commit is contained in:
Joris Bertomeu
2025-08-26 17:30:36 +02:00
parent f84f694db7
commit 0c867d0ce0
2 changed files with 10 additions and 3 deletions

View File

@@ -170,14 +170,19 @@
</select>
</div>
</div>
<div class="col-3">
<label class="mb-2">Process remux</label>
<div class="col-3 pt-3">
<div class="form-check form-switch">
<input [ngModelOptions]="{standalone: true}" [(ngModel)]="processRemux" class="form-check-input" type="checkbox" role="switch" id="remuxProcess">
<label class="form-check-label" for="remuxProcess">
Process Full MKV Remux
</label>
</div>
<div class="form-check form-switch">
<input [ngModelOptions]="{standalone: true}" [(ngModel)]="wantToUpscale" class="form-check-input" type="checkbox" role="switch" id="upscaleProcess">
<label class="form-check-label" for="upscaleProcess">
Upscale 2x
</label>
</div>
</div>
</div>
<div class="row mt-2">

View File

@@ -23,6 +23,7 @@ export class AppComponent implements OnInit {
lastJobSuccess: boolean = false;
welcomeHeader: any = null;
processRemux: boolean = true;
wantToUpscale: boolean = true;
loaded: any = null;
Math: any = Math;
@@ -242,7 +243,8 @@ export class AppComponent implements OnInit {
wantedResolution: this.loaded.videoTracks.find((res: any) => res.name === formData.wantedResolution),
mpdUrl: this.loadForm.get('mpdUrl')?.value,
mp4Filename: this.loadForm.get('mp4Filename')?.value,
wantedRemux: this.processRemux
wantedRemux: this.processRemux,
wantToUpscale: this.wantToUpscale
});
this.videoProcessingService.startProcess(data).subscribe({
next: (response) => {