mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Readable meta duration
This commit is contained in:
parent
8da00f74be
commit
3493f6322e
2 changed files with 5 additions and 2 deletions
|
@ -263,8 +263,8 @@ fun LoadResponse.toResultData(repo: APIRepository): ResultData {
|
|||
metaText =
|
||||
if (repo.providerType == ProviderType.MetaProvider) txt(R.string.provider_info_meta) else null,
|
||||
durationText = if (dur == null || dur <= 0) null else txt(
|
||||
R.string.duration_format,
|
||||
dur
|
||||
//R.string.duration_format,
|
||||
secondsToReadable(dur * 60, "0 ${context?.getString(R.string.mins_long)}")
|
||||
),
|
||||
onGoingText = if (this is EpisodeResponse) {
|
||||
txt(
|
||||
|
|
|
@ -311,6 +311,9 @@
|
|||
<string name="days_short">d</string>
|
||||
<string name="hours_short">h</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">Status</string>
|
||||
<string name="year">Year</string>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue