fix(requests): 🐛 Fixed the issue where Approving a 4K Request wouldn't send it to the correct 4K radarr instance

#4509
pull/4511/head
tidusjar 3 years ago
parent 90171f9bb2
commit 87cb9903db

@ -640,7 +640,7 @@ namespace Ombi.Core.Engine
private async Task<RequestEngineResult> ProcessSendingMovie(MovieRequests request, bool is4K) private async Task<RequestEngineResult> ProcessSendingMovie(MovieRequests request, bool is4K)
{ {
if (request.Approved) if (is4K ? request.Approved4K : request.Approved)
{ {
var result = await Sender.Send(request, is4K); var result = await Sender.Send(request, is4K);
if (result.Success && result.Sent) if (result.Success && result.Sent)

@ -21,6 +21,7 @@
"issues", "issues",
"emby", "emby",
"availability-rules", "availability-rules",
"details" "details",
"requests"
] ]
} }

@ -120,7 +120,11 @@ export class MovieDetailsComponent implements OnInit{
} else { } else {
const result = await firstValueFrom(this.requestService.requestMovie({ theMovieDbId: this.theMovidDbId, languageCode: this.translate.currentLang, requestOnBehalf: userId, qualityPathOverride: undefined, rootFolderOverride: undefined, is4KRequest: is4K })); const result = await firstValueFrom(this.requestService.requestMovie({ theMovieDbId: this.theMovidDbId, languageCode: this.translate.currentLang, requestOnBehalf: userId, qualityPathOverride: undefined, rootFolderOverride: undefined, is4KRequest: is4K }));
if (result.result) { if (result.result) {
if (is4K) {
this.movie.has4KRequest = true;
} else {
this.movie.requested = true; this.movie.requested = true;
}
this.movie.requestId = result.requestId; this.movie.requestId = result.requestId;
this.movieRequest = await this.requestService.getMovieRequest(this.movie.requestId); this.movieRequest = await this.requestService.getMovieRequest(this.movie.requestId);
this.messageService.send(this.translate.instant("Requests.RequestAddedSuccessfully", { title: this.movie.title }), "Ok"); this.messageService.send(this.translate.instant("Requests.RequestAddedSuccessfully", { title: this.movie.title }), "Ok");

Loading…
Cancel
Save