mirror of
https://github.com/Sonarr/Sonarr
synced 2025-03-04 10:39:34 +00:00
parent
c6eb6c3cd8
commit
ce6536f8ab
3 changed files with 31 additions and 4 deletions
|
@ -18,6 +18,7 @@ import {
|
|||
} from 'typings/History';
|
||||
import formatDateTime from 'Utilities/Date/formatDateTime';
|
||||
import formatAge from 'Utilities/Number/formatAge';
|
||||
import formatBytes from 'Utilities/Number/formatBytes';
|
||||
import formatCustomFormatScore from 'Utilities/Number/formatCustomFormatScore';
|
||||
import translate from 'Utilities/String/translate';
|
||||
import styles from './HistoryDetails.css';
|
||||
|
@ -50,6 +51,7 @@ function HistoryDetails(props: HistoryDetailsProps) {
|
|||
ageHours,
|
||||
ageMinutes,
|
||||
publishedDate,
|
||||
size,
|
||||
} = data as GrabbedHistoryData;
|
||||
|
||||
const downloadClientNameInfo = downloadClientName ?? downloadClient;
|
||||
|
@ -160,6 +162,13 @@ function HistoryDetails(props: HistoryDetailsProps) {
|
|||
})}
|
||||
/>
|
||||
) : null}
|
||||
|
||||
{size ? (
|
||||
<DescriptionListItem
|
||||
title={translate('Size')}
|
||||
data={formatBytes(size)}
|
||||
/>
|
||||
) : null}
|
||||
</DescriptionList>
|
||||
);
|
||||
}
|
||||
|
@ -187,7 +196,7 @@ function HistoryDetails(props: HistoryDetailsProps) {
|
|||
}
|
||||
|
||||
if (eventType === 'downloadFolderImported') {
|
||||
const { customFormatScore, droppedPath, importedPath } =
|
||||
const { customFormatScore, droppedPath, importedPath, size } =
|
||||
data as DownloadFolderImportedHistory;
|
||||
|
||||
return (
|
||||
|
@ -220,12 +229,20 @@ function HistoryDetails(props: HistoryDetailsProps) {
|
|||
data={formatCustomFormatScore(parseInt(customFormatScore))}
|
||||
/>
|
||||
) : null}
|
||||
|
||||
{size ? (
|
||||
<DescriptionListItem
|
||||
title={translate('FileSize')}
|
||||
data={formatBytes(size)}
|
||||
/>
|
||||
) : null}
|
||||
</DescriptionList>
|
||||
);
|
||||
}
|
||||
|
||||
if (eventType === 'episodeFileDeleted') {
|
||||
const { reason, customFormatScore } = data as EpisodeFileDeletedHistory;
|
||||
const { reason, customFormatScore, size } =
|
||||
data as EpisodeFileDeletedHistory;
|
||||
|
||||
let reasonMessage = '';
|
||||
|
||||
|
@ -255,6 +272,13 @@ function HistoryDetails(props: HistoryDetailsProps) {
|
|||
data={formatCustomFormatScore(parseInt(customFormatScore))}
|
||||
/>
|
||||
) : null}
|
||||
|
||||
{size ? (
|
||||
<DescriptionListItem
|
||||
title={translate('FileSize')}
|
||||
data={formatBytes(size)}
|
||||
/>
|
||||
) : null}
|
||||
</DescriptionList>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -44,11 +44,13 @@ export interface DownloadFolderImportedHistory {
|
|||
downloadClientName: string;
|
||||
droppedPath: string;
|
||||
importedPath: string;
|
||||
size: string;
|
||||
}
|
||||
|
||||
export interface EpisodeFileDeletedHistory {
|
||||
customFormatScore?: string;
|
||||
reason: 'Manual' | 'MissingFromDisk' | 'Upgrade';
|
||||
size: string;
|
||||
}
|
||||
|
||||
export interface EpisodeFileRenamedHistory {
|
||||
|
|
|
@ -707,6 +707,7 @@
|
|||
"FileManagement": "File Management",
|
||||
"FileNameTokens": "File Name Tokens",
|
||||
"FileNames": "File Names",
|
||||
"FileSize": "File Size",
|
||||
"Filename": "Filename",
|
||||
"Files": "Files",
|
||||
"Filter": "Filter",
|
||||
|
@ -1669,8 +1670,8 @@
|
|||
"ReleaseProfileTagSeriesHelpText": "Release profiles will apply to series with at least one matching tag. Leave blank to apply to all series",
|
||||
"ReleaseProfiles": "Release Profiles",
|
||||
"ReleaseProfilesLoadError": "Unable to load Release Profiles",
|
||||
"ReleaseRejected": "Release Rejected",
|
||||
"ReleasePush": "Release Push",
|
||||
"ReleaseRejected": "Release Rejected",
|
||||
"ReleaseSceneIndicatorAssumingScene": "Assuming Scene numbering.",
|
||||
"ReleaseSceneIndicatorAssumingTvdb": "Assuming TVDB numbering.",
|
||||
"ReleaseSceneIndicatorMappedNotRequested": "Mapped episode wasn't requested in this search.",
|
||||
|
@ -2122,8 +2123,8 @@
|
|||
"UsenetDelayHelpText": "Delay in minutes to wait before grabbing a release from Usenet",
|
||||
"UsenetDelayTime": "Usenet Delay: {usenetDelay}",
|
||||
"UsenetDisabled": "Usenet Disabled",
|
||||
"Username": "Username",
|
||||
"UserInvokedSearch": "User Invoked Search",
|
||||
"Username": "Username",
|
||||
"UtcAirDate": "UTC Air Date",
|
||||
"Version": "Version",
|
||||
"VersionNumber": "Version {version}",
|
||||
|
|
Loading…
Add table
Reference in a new issue