U4 - how show duration as hrs/mins

Moderators: Gully, peteru

Post Reply
Jeddie
Master
Posts: 101
Joined: Tue Jan 06, 2015 15:25

U4 - how show duration as hrs/mins

Post by Jeddie » Sun Mar 31, 2019 15:58

I have invoked the settings to show durations of recordings in Media files.
However it displays in minutes eg a recording may say it is 160mins.

I would prefer it to say 2hours 40 minutes like the P2 used to?

I have gone thru the settings but no luck?

Is it possible? If so how?

prl
Wizard God
Posts: 32702
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: U4 - how show duration as hrs/mins

Post by prl » Sun Mar 31, 2019 16:41

Jeddie wrote:
Sun Mar 31, 2019 15:58
I have invoked the settings to show durations of recordings/Media files.
However it displays in minutes eg a recording may say it is 160mins.

I would prefer it to say 2hours 40 minutes like the P2 used to?

I have gone thru the settings but no luck?

There is no setting for that.
Jeddie wrote:
Sun Mar 31, 2019 15:58
Is it possible? If so how?

Yes. By changing the code, if enough people think it's worthwhile.

However, the space is limited, and a h:mm:ss form will take more space than mmm:ss. That would mean that the column width for the title would need to be reduced a little if the hh:mm:ss form is chosen..
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: U4 - how show duration as hrs/mins

Post by adoxa » Sun Mar 31, 2019 17:06

I should be able to whip up a plugin for you. What format would you like?

  • h:mm (e.g. 0:59, 1:00)
  • h'h'mm (e.g. 0h59, 1h00)
  • h'h'mm'm' (e.g. 0h59m, 1h00m)
  • as above, unless it's under an hour, then use 'm' (and 's'; e.g. 59m59, 1h00m)
  • h:mm:ss (e.g. 0:59:59, 1:00:00)
  • h'h'mm'm'ss (e.g. 0h59m59, 1h00m00)
  • as above, with 's'
  • any of the letter forms, but leaving out 0 components (and maybe a space between)

prl
Wizard God
Posts: 32702
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: U4 - how show duration as hrs/mins

Post by prl » Sun Mar 31, 2019 17:14

adoxa wrote:
Sun Mar 31, 2019 17:06
I should be able to whip up a plugin for you. What format would you like?

Many of those formats are unlikely to fit in the current column space for the duration in MovieSelection. The maximum values are 1440:00 for m:s, and 24:00:00 for h:mm:s.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Jeddie
Master
Posts: 101
Joined: Tue Jan 06, 2015 15:25

Re: U4 - how show duration as hrs/mins

Post by Jeddie » Sun Mar 31, 2019 18:00

adoxa wrote:
Sun Mar 31, 2019 17:06
  • h:mm (e.g. 0:59, 1:00)
  • h'h'mm (e.g. 0h59, 1h00)
  • h'h'mm'm' (e.g. 0h59m, 1h00m)
  • as above, unless it's under an hour, then use 'm' (and 's'; e.g. 59m59, 1h00m)
  • h:mm:ss (e.g. 0:59:59, 1:00:00)
  • h'h'mm'm'ss (e.g. 0h59m59, 1h00m00)
  • as above, with 's'
  • any of the letter forms, but leaving out 0 components (and maybe a space between)
Thanks for offering. I am impressed at your quick response.

According to Prl column width may be an issue. No need to show seconds.
I would go with the shortest form ( I think this would be it?) > h:mm (e.g. 0:59, 1:00)

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: U4 - how show duration as hrs/mins

Post by adoxa » Sun Mar 31, 2019 21:09

At least with my Full Metal Wizard settings, HH:MM:SS just fits (a single-digit hour should be fine). Still, I've gone with H:MM for this one (if it's 30 seconds or more the minute rounds up). Only the list is changed, the info is still M:SS.

To install: rename without .tgz (forum doesn't support .ipk) and copy to USB. Insert the USB, you should be prompted to install extensions, select it. Press OK to select the extension, GREEN to install. Done.
Attachments
enigma2-plugin-extensions-ListHMM_1_all.ipk.tgz
(4.11 KiB) Downloaded 38 times

Post Reply

Return to “General Topics”