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