2019-03-21, 13:21
(2019-03-21, 07:14)Arcanthur Wrote: Thanks for the support guys, I've been working on improving animations and a few other small tweaks for the poster view:Regarding hour conversion - that's a skin setting, I can recall exactly how it is on the original titan code but i think it relies on skin helper, which is not really needed anymore since format options introduced to listitem.duration, especially if u r inside library (myxxxxxx.xml).
Side note, in the video you'll notice there is some delay for movie studios and the conversion of mins to hours and minutes. Does anyone know what might cause this, or is it that's just how long it takes for SkinHelper to parse the data?
Try using my var:
Code:
<variable name="ListItemDuration">
<value condition="![Container.Content(Songs) | Container.Content(Musicvideos)] + !Skin.HasSetting(DisableHoursDuration) + Integer.IsGreater(ListItem.Duration(h),0)">$INFO[ListItem.Duration(h),,h ]$INFO[ListItem.Duration(m),,m]</value>
<value condition="![Container.Content(Songs) | Container.Content(Musicvideos)] + !String.IsEmpty(ListItem.Duration)">$INFO[ListItem.Duration(mins),, min]</value>
<value condition="[Container.Content(Songs) | Container.Content(Musicvideos)] + Integer.IsGreater(ListItem.Duration(m),0) + ![String.IsEmpty(ListItem.Duration(m)) + String.IsEmpty(ListItem.Duration(ss))]">$INFO[ListItem.Duration(m),,m ]$INFO[ListItem.Duration(ss),,s]</value>
<value condition="[Container.Content(Songs) | Container.Content(Musicvideos)] + Integer.IsEqual(ListItem.Duration(m),0) + !String.IsEmpty(ListItem.Duration(ss))">$INFO[ListItem.Duration(ss),, s]</value>
<value condition="[Container.Content(Songs) | Container.Content(Musicvideos)] + !String.IsEmpty(ListItem.Duration)">$INFO[ListItem.Duration,, min]</value>
<value condition="[Container.Content(LiveTV) + PVR.HasEpg] + !Skin.HasSetting(DisableHoursDuration) + Integer.IsGreater(PVR.EpgEventDuration(h),0)">$INFO[PVR.EpgEventDuration,, min]</value>
<value condition="[Container.Content(LiveTV) + PVR.HasEpg] + !String.IsEmpty(PVR.EpgEventDuration)">$INFO[PVR.EpgEventDuration(mins),, min]</value>
</variable>
regarding studio logo, it is due to SH slowness, first consider updating to SH from my repo. Secondly, you can use ListItem.Studio to get studio imgs faster but then u'll get many texture load failures so it's better to avoid and try adding <fadetime>300</fadetime> (or other num that works for you) to make the transition slicker)
btw, just a thought that crossed my mind, I'd try instead of the zoom animation you did, take the overall time of the animation, and split it to a delay at first and then a faster zoom in.
overall, good job