2020-03-03, 22:37
Is there one? Looked over the wiki and couldn't come up with anything.
(2020-03-03, 22:37)YerMusic (IO) Wrote: Is there one? Looked over the wiki and couldn't come up with anything.No. And I don't think "album duration" is a well-defined concept. I don't know of any tag format that supports it, and I don't think album scrapers can get it at the current scrape sites. So it isn't stored in the library. It could be computed from the sum of the track durations at least for tracks in the library but I don't know of a way to do that in skin code.
xml:
<include content="TopBar">
<param name="breadcrumbs_label" value="$LOCALIZE[2]" />
<param name="sublabel">$INFO[Container.SortMethod,$LOCALIZE[31022]: , ∙ ]$INFO[Container.CurrentItem,, / ]$INFO[Container.NumItems]$INFO[Container.TotalTime,[CR]Duration Test: ,]</param>
</include>
(2020-04-12, 12:49)Chillbo Wrote: @jjd-uk, this is indeed working great! What I'm looking now for is a way to offer this information in the music info dialog as well. Any ideas - without having to rely on the skin helper script?
xml:<control type="button">
<visible allowhiddenfocus="true">false</visible>
<onfocus condition="String.IsEqual(ListItem.DBtype,album) + !string.IsEmpty(Container.TotalTime)">SetProperty(albumduration,$INFO[Container.TotalTime],home)</onfocus>
</control>
(2020-04-12, 15:24)mardukL Wrote:(2020-04-12, 12:49)Chillbo Wrote: @jjd-uk, this is indeed working great! What I'm looking now for is a way to offer this information in the music info dialog as well. Any ideas - without having to rely on the skin helper script?
a way is to save that label as a custom windowproperty (e.g. hidden button in the focusedlayout ) to store it and call it in the wished dialog.
e.g.
xml:<control type="button">
<visible allowhiddenfocus="true">false</visible>
<onfocus condition="String.IsEqual(ListItem.DBtype,album) + !string.IsEmpty(Container.TotalTime)">SetProperty(albumduration,$INFO[Container.TotalTime],home)</onfocus>
</control>
label usage for the dialog
$INFO[Window(home).Property(albumduration)]