New: Output Path column in Queue

pull/6/head
Qstick 5 years ago
parent e4f1e5d376
commit a3e955443d

@ -77,6 +77,7 @@ class QueueRow extends Component {
quality,
protocol,
indexer,
outputPath,
downloadClient,
downloadForced,
estimatedCompletionTime,
@ -238,6 +239,14 @@ class QueueRow extends Component {
);
}
if (name === 'outputPath') {
return (
<TableRowCell key={name}>
{outputPath}
</TableRowCell>
);
}
if (name === 'estimatedCompletionTime') {
return (
<TimeleftCell
@ -359,6 +368,7 @@ QueueRow.propTypes = {
quality: PropTypes.object.isRequired,
protocol: PropTypes.string.isRequired,
indexer: PropTypes.string,
outputPath: PropTypes.string,
downloadClient: PropTypes.string,
downloadForced: PropTypes.bool.isRequired,
estimatedCompletionTime: PropTypes.string,

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

@ -32,6 +32,7 @@ namespace Lidarr.Api.V1.Queue
public DownloadProtocol Protocol { get; set; }
public string DownloadClient { get; set; }
public string Indexer { get; set; }
public string OutputPath { get; set; }
public bool DownloadForced { get; set; }
}
@ -63,6 +64,7 @@ namespace Lidarr.Api.V1.Queue
Protocol = model.Protocol,
DownloadClient = model.DownloadClient,
Indexer = model.Indexer,
OutputPath = model.OutputPath,
DownloadForced = model.DownloadForced
};
}

@ -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; }
public bool DownloadForced { get; set; }
}

@ -89,6 +89,7 @@ namespace NzbDrone.Core.Queue
Protocol = trackedDownload.Protocol,
DownloadClient = trackedDownload.DownloadItem.DownloadClient,
Indexer = trackedDownload.Indexer,
OutputPath = trackedDownload.DownloadItem.OutputPath.ToString(),
DownloadForced = downloadForced
};

Loading…
Cancel
Save