diff --git a/src/Radarr.Api.V3/ManualImport/ManualImportController.cs b/src/Radarr.Api.V3/ManualImport/ManualImportController.cs index cd6de2743..3a270f35a 100644 --- a/src/Radarr.Api.V3/ManualImport/ManualImportController.cs +++ b/src/Radarr.Api.V3/ManualImport/ManualImportController.cs @@ -22,12 +22,14 @@ public ManualImportController(IManualImportService manualImportService) } [HttpGet] + [Produces("application/json")] public List GetMediaFiles(string folder, string downloadId, int? movieId, bool filterExistingFiles = true) { return _manualImportService.GetMediaFiles(folder, downloadId, movieId, filterExistingFiles).ToResource().Select(AddQualityWeight).ToList(); } [HttpPost] + [Consumes("application/json")] public object ReprocessItems([FromBody] List items) { foreach (var item in items) @@ -39,8 +41,8 @@ public object ReprocessItems([FromBody] List item item.CustomFormats = processedItem.CustomFormats.ToResource(false); item.CustomFormatScore = processedItem.CustomFormatScore; - if (item.Languages?.Count <= 1 && (item.Languages?.SingleOrDefault() ?? Language.Unknown) == Language.Unknown && - processedItem.Languages.Any()) + // Only set the language/quality if they're unknown and languages were returned. + if (item.Languages?.Count <= 1 && (item.Languages?.SingleOrDefault() ?? Language.Unknown) == Language.Unknown && processedItem.Languages.Any()) { item.Languages = processedItem.Languages; }