Readable meta duration

This commit is contained in:
KingLucius 2024-02-27 15:09:29 +02:00
parent 8da00f74be
commit 3493f6322e
2 changed files with 5 additions and 2 deletions

View file

@ -263,8 +263,8 @@ fun LoadResponse.toResultData(repo: APIRepository): ResultData {
metaText = metaText =
if (repo.providerType == ProviderType.MetaProvider) txt(R.string.provider_info_meta) else null, if (repo.providerType == ProviderType.MetaProvider) txt(R.string.provider_info_meta) else null,
durationText = if (dur == null || dur <= 0) null else txt( durationText = if (dur == null || dur <= 0) null else txt(
R.string.duration_format, //R.string.duration_format,
dur secondsToReadable(dur * 60, "0 ${context?.getString(R.string.mins_long)}")
), ),
onGoingText = if (this is EpisodeResponse) { onGoingText = if (this is EpisodeResponse) {
txt( txt(

View file

@ -311,6 +311,9 @@
<string name="days_short">d</string> <string name="days_short">d</string>
<string name="hours_short">h</string> <string name="hours_short">h</string>
<string name="mins_short">m</string> <string name="mins_short">m</string>
<string name="days_long">days</string>
<string name="hours_long">hours</string>
<string name="mins_long">mins</string>
<string name="status_completed">Completed</string> <string name="status_completed">Completed</string>
<string name="status">Status</string> <string name="status">Status</string>
<string name="year">Year</string> <string name="year">Year</string>