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:
On line 602 the next Duration is calculated as:
Code:
I suppose line 602 should be changed to:
Code:
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);
Code:
Code:
string strDuration = tag.Duration <= 0 ? string.Empty : tag.Duration.ToString();
Code:
Code:
string strDuration = tag.Duration <= 0 ? string.Empty : MediaPortal.Util.Utils.SecondsToHMSString(tag.Duration);