[Approved] Tag #Play.Next.Duration returns seconds instead of Min:Sec format (1 Viewer)

gdl

Portal Member
April 9, 2008
34
2
Sittard
Home Country
Netherlands Netherlands
Hi,

It seems like since version 1.2.0 RC the tag #Play.Next.Duration is returning seconds, where as the #Play.Current.Duration is returning playing time in the format: mins:secs.

Investigating this a bit more, this issue seems to be in the source code file WindowPlugins\GUIMusic\GUIMusicOverlay.cs:

On line 459-461 the current Duration is calculated as:
Code:
Code:
string strDuration = tag.Duration <= 0
                       ? string.Empty
                       : MediaPortal.Util.Utils.SecondsToHMSString(tag.Duration);
On line 602 the next Duration is calculated as:
Code:
Code:
string strDuration = tag.Duration <= 0 ? string.Empty : tag.Duration.ToString();
I suppose line 602 should be changed to:
Code:
Code:
string strDuration = tag.Duration <= 0 ? string.Empty : MediaPortal.Util.Utils.SecondsToHMSString(tag.Duration);
 

Holzi

Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    AW: Tag #Play.Next.Duration returns seconds instead of Min:confused:ec format

    Could this be fixed in MP 1.2.2? It is a minor change isn't it?
    Because mantis says "Target Version: not planned yet"
     

    Users who are viewing this thread

    Top Bottom