mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
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 @@ public class Queue : ModelBase
|
||||
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 @@ private Queue MapQueueItem(TrackedDownload trackedDownload, Episode episode)
|
||||
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 @@ public class QueueResource : RestResource
|
||||
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 @@ public static QueueResource ToResource(this NzbDrone.Core.Queue.Queue model, boo
|
||||
DownloadId = model.DownloadId,
|
||||
Protocol = model.Protocol,
|
||||
DownloadClient = model.DownloadClient,
|
||||
Indexer = model.Indexer
|
||||
Indexer = model.Indexer,
|
||||
OutputPath = model.OutputPath
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user