mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-24 22:37:06 -04:00
parent
4933a75d15
commit
8055b5e5da
5 changed files with 22 additions and 2 deletions
|
@ -76,6 +76,7 @@ class QueueRow extends Component {
|
||||||
quality,
|
quality,
|
||||||
protocol,
|
protocol,
|
||||||
indexer,
|
indexer,
|
||||||
|
outputPath,
|
||||||
downloadClient,
|
downloadClient,
|
||||||
estimatedCompletionTime,
|
estimatedCompletionTime,
|
||||||
timeleft,
|
timeleft,
|
||||||
|
@ -260,6 +261,14 @@ class QueueRow extends Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (name === 'outputPath') {
|
||||||
|
return (
|
||||||
|
<TableRowCell key={name}>
|
||||||
|
{outputPath}
|
||||||
|
</TableRowCell>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (name === 'estimatedCompletionTime') {
|
if (name === 'estimatedCompletionTime') {
|
||||||
return (
|
return (
|
||||||
<TimeleftCell
|
<TimeleftCell
|
||||||
|
@ -364,6 +373,7 @@ QueueRow.propTypes = {
|
||||||
quality: PropTypes.object.isRequired,
|
quality: PropTypes.object.isRequired,
|
||||||
protocol: PropTypes.string.isRequired,
|
protocol: PropTypes.string.isRequired,
|
||||||
indexer: PropTypes.string,
|
indexer: PropTypes.string,
|
||||||
|
outputPath: PropTypes.string,
|
||||||
downloadClient: PropTypes.string,
|
downloadClient: PropTypes.string,
|
||||||
estimatedCompletionTime: PropTypes.string,
|
estimatedCompletionTime: PropTypes.string,
|
||||||
timeleft: PropTypes.string,
|
timeleft: PropTypes.string,
|
||||||
|
|
|
@ -121,6 +121,12 @@ export const defaultState = {
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: false
|
isVisible: false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'outputPath',
|
||||||
|
label: 'Output Path',
|
||||||
|
isSortable: false,
|
||||||
|
isVisible: false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'estimatedCompletionTime',
|
name: 'estimatedCompletionTime',
|
||||||
label: 'Timeleft',
|
label: 'Timeleft',
|
||||||
|
|
|
@ -29,6 +29,7 @@ namespace NzbDrone.Core.Queue
|
||||||
public DownloadProtocol Protocol { get; set; }
|
public DownloadProtocol Protocol { get; set; }
|
||||||
public string DownloadClient { get; set; }
|
public string DownloadClient { get; set; }
|
||||||
public string Indexer { get; set; }
|
public string Indexer { get; set; }
|
||||||
|
public string OutputPath { get; set; }
|
||||||
public string ErrorMessage { get; set; }
|
public string ErrorMessage { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,8 @@ namespace NzbDrone.Core.Queue
|
||||||
DownloadId = trackedDownload.DownloadItem.DownloadId,
|
DownloadId = trackedDownload.DownloadItem.DownloadId,
|
||||||
Protocol = trackedDownload.Protocol,
|
Protocol = trackedDownload.Protocol,
|
||||||
DownloadClient = trackedDownload.DownloadItem.DownloadClient,
|
DownloadClient = trackedDownload.DownloadItem.DownloadClient,
|
||||||
Indexer = trackedDownload.Indexer
|
Indexer = trackedDownload.Indexer,
|
||||||
|
OutputPath = trackedDownload.DownloadItem.OutputPath.ToString()
|
||||||
};
|
};
|
||||||
|
|
||||||
if (episode != null)
|
if (episode != null)
|
||||||
|
|
|
@ -32,6 +32,7 @@ namespace Sonarr.Api.V3.Queue
|
||||||
public DownloadProtocol Protocol { get; set; }
|
public DownloadProtocol Protocol { get; set; }
|
||||||
public string DownloadClient { get; set; }
|
public string DownloadClient { get; set; }
|
||||||
public string Indexer { get; set; }
|
public string Indexer { get; set; }
|
||||||
|
public string OutputPath { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class QueueResourceMapper
|
public static class QueueResourceMapper
|
||||||
|
@ -61,7 +62,8 @@ namespace Sonarr.Api.V3.Queue
|
||||||
DownloadId = model.DownloadId,
|
DownloadId = model.DownloadId,
|
||||||
Protocol = model.Protocol,
|
Protocol = model.Protocol,
|
||||||
DownloadClient = model.DownloadClient,
|
DownloadClient = model.DownloadClient,
|
||||||
Indexer = model.Indexer
|
Indexer = model.Indexer,
|
||||||
|
OutputPath = model.OutputPath
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue