mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-15 01:32:55 -07:00
fix(requests): 🐛 Fixed the issue where Approving a 4K Request wouldn't send it to the correct 4K radarr instance
#4509
This commit is contained in:
parent
90171f9bb2
commit
87cb9903db
3 changed files with 8 additions and 3 deletions
|
@ -640,7 +640,7 @@ namespace Ombi.Core.Engine
|
|||
|
||||
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);
|
||||
if (result.Success && result.Sent)
|
||||
|
|
3
src/Ombi/.vscode/settings.json
vendored
3
src/Ombi/.vscode/settings.json
vendored
|
@ -21,6 +21,7 @@
|
|||
"issues",
|
||||
"emby",
|
||||
"availability-rules",
|
||||
"details"
|
||||
"details",
|
||||
"requests"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -120,7 +120,11 @@ export class MovieDetailsComponent implements OnInit{
|
|||
} else {
|
||||
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 (is4K) {
|
||||
this.movie.has4KRequest = true;
|
||||
} else {
|
||||
this.movie.requested = true;
|
||||
}
|
||||
this.movie.requestId = result.requestId;
|
||||
this.movieRequest = await this.requestService.getMovieRequest(this.movie.requestId);
|
||||
this.messageService.send(this.translate.instant("Requests.RequestAddedSuccessfully", { title: this.movie.title }), "Ok");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue