New: Output Path column in Queue

Closes #3058
pull/3072/head
Mark McDowall 6 years ago
parent 4933a75d15
commit 8055b5e5da

@ -76,6 +76,7 @@ class QueueRow extends Component {
quality,
protocol,
indexer,
outputPath,
downloadClient,
estimatedCompletionTime,
timeleft,
@ -260,6 +261,14 @@ class QueueRow extends Component {
);
}
if (name === 'outputPath') {
return (
<TableRowCell key={name}>
{outputPath}
</TableRowCell>
);
}
if (name === 'estimatedCompletionTime') {
return (
<TimeleftCell
@ -364,6 +373,7 @@ QueueRow.propTypes = {
quality: PropTypes.object.isRequired,
protocol: PropTypes.string.isRequired,
indexer: PropTypes.string,
outputPath: PropTypes.string,
downloadClient: PropTypes.string,
estimatedCompletionTime: PropTypes.string,
timeleft: PropTypes.string,

@ -121,6 +121,12 @@ export const defaultState = {
isSortable: true,
isVisible: false
},
{
name: 'outputPath',
label: 'Output Path',
isSortable: false,
isVisible: false
},
{
name: 'estimatedCompletionTime',
label: 'Timeleft',

@ -29,6 +29,7 @@ namespace NzbDrone.Core.Queue
public DownloadProtocol Protocol { get; set; }
public string DownloadClient { get; set; }
public string Indexer { get; set; }
public string OutputPath { get; set; }
public string ErrorMessage { get; set; }
}
}

@ -77,7 +77,8 @@ namespace NzbDrone.Core.Queue
DownloadId = trackedDownload.DownloadItem.DownloadId,
Protocol = trackedDownload.Protocol,
DownloadClient = trackedDownload.DownloadItem.DownloadClient,
Indexer = trackedDownload.Indexer
Indexer = trackedDownload.Indexer,
OutputPath = trackedDownload.DownloadItem.OutputPath.ToString()
};
if (episode != null)

@ -32,6 +32,7 @@ namespace Sonarr.Api.V3.Queue
public DownloadProtocol Protocol { get; set; }
public string DownloadClient { get; set; }
public string Indexer { get; set; }
public string OutputPath { get; set; }
}
public static class QueueResourceMapper
@ -61,7 +62,8 @@ namespace Sonarr.Api.V3.Queue
DownloadId = model.DownloadId,
Protocol = model.Protocol,
DownloadClient = model.DownloadClient,
Indexer = model.Indexer
Indexer = model.Indexer,
OutputPath = model.OutputPath
};
}

Loading…
Cancel
Save