mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-05 15:47:20 +02:00
Improve messaging if release is in queue because all movies in release were not imported
Sync with upstream (cherry picked from commit 2728bf79ca41bc372de515cb09e1034a8c006c2b)
This commit is contained in:
parent
2f1e077e0d
commit
f704ab1512
@ -56,6 +56,8 @@ export const defaultState = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const persistState = [
|
export const persistState = [
|
||||||
|
'interactiveImport.sortKey',
|
||||||
|
'interactiveImport.sortDirection',
|
||||||
'interactiveImport.recentFolders',
|
'interactiveImport.recentFolders',
|
||||||
'interactiveImport.importMode'
|
'interactiveImport.importMode'
|
||||||
];
|
];
|
||||||
|
@ -155,6 +155,8 @@ public void Import(TrackedDownload trackedDownload)
|
|||||||
if (importResults.Empty())
|
if (importResults.Empty())
|
||||||
{
|
{
|
||||||
trackedDownload.Warn("No files found are eligible for import in {0}", outputPath);
|
trackedDownload.Warn("No files found are eligible for import in {0}", outputPath);
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (importResults.Count == 1)
|
if (importResults.Count == 1)
|
||||||
@ -176,16 +178,20 @@ public void Import(TrackedDownload trackedDownload)
|
|||||||
|
|
||||||
if (importResults.Any(c => c.Result != ImportResultType.Imported))
|
if (importResults.Any(c => c.Result != ImportResultType.Imported))
|
||||||
{
|
{
|
||||||
statusMessages.AddRange(importResults
|
statusMessages.AddRange(
|
||||||
|
importResults
|
||||||
.Where(v => v.Result != ImportResultType.Imported && v.ImportDecision.LocalMovie != null)
|
.Where(v => v.Result != ImportResultType.Imported && v.ImportDecision.LocalMovie != null)
|
||||||
.Select(v => new TrackedDownloadStatusMessage(Path.GetFileName(v.ImportDecision.LocalMovie.Path), v.Errors)));
|
.OrderBy(v => v.ImportDecision.LocalMovie.Path)
|
||||||
|
.Select(v =>
|
||||||
|
new TrackedDownloadStatusMessage(Path.GetFileName(v.ImportDecision.LocalMovie.Path),
|
||||||
|
v.Errors)));
|
||||||
|
}
|
||||||
|
|
||||||
if (statusMessages.Any())
|
if (statusMessages.Any())
|
||||||
{
|
{
|
||||||
trackedDownload.Warn(statusMessages.ToArray());
|
trackedDownload.Warn(statusMessages.ToArray());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public bool VerifyImport(TrackedDownload trackedDownload, List<ImportResult> importResults)
|
public bool VerifyImport(TrackedDownload trackedDownload, List<ImportResult> importResults)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user