mirror of https://github.com/lidarr/Lidarr
Fixed: Showing already imported tracks as downloading in Artists index
(cherry picked from commit 8c3a0ebabae163274b7587afe1f998edb39c5184)
This commit is contained in:
parent
af12fad185
commit
ecb37b8378
|
@ -12,7 +12,10 @@ function createArtistQueueDetailsSelector(artistId: number) {
|
|||
(queueItems) => {
|
||||
return queueItems.reduce(
|
||||
(acc: ArtistQueueDetails, item) => {
|
||||
if (item.artistId !== artistId) {
|
||||
if (
|
||||
item.trackedDownloadState === 'imported' ||
|
||||
item.artistId !== artistId
|
||||
) {
|
||||
return acc;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,18 @@ import ModelBase from 'App/ModelBase';
|
|||
import { QualityModel } from 'Quality/Quality';
|
||||
import CustomFormat from 'typings/CustomFormat';
|
||||
|
||||
export type QueueTrackedDownloadStatus = 'ok' | 'warning' | 'error';
|
||||
|
||||
export type QueueTrackedDownloadState =
|
||||
| 'downloading'
|
||||
| 'downloadFailed'
|
||||
| 'downloadFailedPending'
|
||||
| 'importPending'
|
||||
| 'importing'
|
||||
| 'importFailed'
|
||||
| 'imported'
|
||||
| 'ignored';
|
||||
|
||||
export interface StatusMessage {
|
||||
title: string;
|
||||
messages: string[];
|
||||
|
@ -17,8 +29,8 @@ interface Queue extends ModelBase {
|
|||
estimatedCompletionTime: string;
|
||||
added?: string;
|
||||
status: string;
|
||||
trackedDownloadStatus: string;
|
||||
trackedDownloadState: string;
|
||||
trackedDownloadStatus: QueueTrackedDownloadStatus;
|
||||
trackedDownloadState: QueueTrackedDownloadState;
|
||||
statusMessages: StatusMessage[];
|
||||
errorMessage: string;
|
||||
downloadId: string;
|
||||
|
|
Loading…
Reference in New Issue