2018-04-05, 11:38
2018-04-05, 12:30
Its missing.
espeacially in titan for leia..
Must be set up in includesvariables.xml
must be integrated there....cant confirm.
but i remember had trouble by deactivate h duration wasnt working in titan leia.
EDIT: if its just for one view type, or easier.
Testet now and works good....if you use that you can ignore the variables xml.
But you can set it up there too.
espeacially in titan for leia..
Must be set up in includesvariables.xml
xml:
.......example
<value condition="String.StartsWith(ListItem.Duration,01:31">1h31</value>
must be integrated there....cant confirm.
but i remember had trouble by deactivate h duration wasnt working in titan leia.
EDIT: if its just for one view type, or easier.
Testet now and works good....if you use that you can ignore the variables xml.
But you can set it up there too.
xml:$INFO[ListItem.Duration(hh,, h]$INFO[ListItem.Duration(mm,, min] <!-- choose what should stay after ...-->
2018-04-05, 19:10
If its just for Titan, you can use this for includesVariables.xml
Its also a BUG fix, when enebled " Dont Show hours in info" in the skin , it will no longer show booth
LINE 273 includesVariables.xml
Its also a BUG fix, when enebled " Dont Show hours in info" in the skin , it will no longer show booth
LINE 273 includesVariables.xml
xml:
includesVariables.xml
<variable name="ListItemDuration"> <!--$INFO[Window(home).Property(SkinHelper.ListItem.RunTime),, $LOCALIZE[12391]] = Runtime in minutes) script.module.metadatautils\lib\helpers\utils.py-->
<value condition="!Skin.HasSetting(SkinHelper.DisableHoursDuration) + !String.IsEmpty(Window(home).Property(SkinHelper.ListItem.DurationAndRunTime))">$INFO[Window(home).Property(SkinHelper.ListItem.RunTime),, $LOCALIZE[12391]]</value> <!-- default <value condition="!Skin.HasSetting(SkinHelper.DisableHoursDuration) + !String.IsEmpty(Window(home).Property(SkinHelper.ListItem.DurationAndRunTime))">$INFO[Window(home).Property(SkinHelper.ListItem.DurationAndRunTime)]</value> -->
<value condition="!String.IsEmpty(ListItem.Duration) + !String.Contains(ListItem.Duration,min) + !String.Contains(ListItem.Duration,">$INFO[ListItem.Duration,, min.]</value> <!-- $INFO[ListItem.Duration(hh,, h]$INFO[ListItem.Duration(mm,, min] -->
<value condition="!String.IsEmpty(ListItem.Duration)">$INFO[ListItem.Duration(hh,,h] $INFO[ListItem.Duration(mm,,min]</value>
</variable>
2018-04-06, 08:41
(2018-04-05, 19:10)mardukL Wrote: [ -> ]If its just for Titan, you can use this for includesVariables.xmlThank you, I tried but it wont work, still in minutes
Its also a BUG fix, when enebled " Dont Show hours in info" in the skin , it will no longer show booth
LINE 273 includesVariables.xml
xml:
includesVariables.xml
<variable name="ListItemDuration"> <!--$INFO[Window(home).Property(SkinHelper.ListItem.RunTime),, $LOCALIZE[12391]] = Runtime in minutes) script.module.metadatautils\lib\helpers\utils.py-->
<value condition="!Skin.HasSetting(SkinHelper.DisableHoursDuration) + !String.IsEmpty(Window(home).Property(SkinHelper.ListItem.DurationAndRunTime))">$INFO[Window(home).Property(SkinHelper.ListItem.RunTime),, $LOCALIZE[12391]]</value> <!-- default <value condition="!Skin.HasSetting(SkinHelper.DisableHoursDuration) + !String.IsEmpty(Window(home).Property(SkinHelper.ListItem.DurationAndRunTime))">$INFO[Window(home).Property(SkinHelper.ListItem.DurationAndRunTime)]</value> -->
<value condition="!String.IsEmpty(ListItem.Duration) + !String.Contains(ListItem.Duration,min) + !String.Contains(ListItem.Duration,">$INFO[ListItem.Duration,, min.]</value> <!-- $INFO[ListItem.Duration(hh,, h]$INFO[ListItem.Duration(mm,, min] -->
<value condition="!String.IsEmpty(ListItem.Duration)">$INFO[ListItem.Duration(hh,,h] $INFO[ListItem.Duration(mm,,min]</value>
</variable>
2018-04-06, 10:22
(2018-04-06, 08:41)irafihggnaba Wrote: [ -> ]EDIT(2018-04-05, 19:10)mardukL Wrote: [ -> ]If its just for Titan, you can use this for includesVariables.xmlThank you, I tried but it wont work, still in minutes
Its also a BUG fix, when enebled " Dont Show hours in info" in the skin , it will no longer show booth
LINE 273 includesVariables.xml
xml:
includesVariables.xml
<variable name="ListItemDuration"> <!--$INFO[Window(home).Property(SkinHelper.ListItem.RunTime),, $LOCALIZE[12391]] = Runtime in minutes) script.module.metadatautils\lib\helpers\utils.py-->
<value condition="!Skin.HasSetting(SkinHelper.DisableHoursDuration) + !String.IsEmpty(Window(home).Property(SkinHelper.ListItem.DurationAndRunTime))">$INFO[Window(home).Property(SkinHelper.ListItem.RunTime),, $LOCALIZE[12391]]</value> <!-- default <value condition="!Skin.HasSetting(SkinHelper.DisableHoursDuration) + !String.IsEmpty(Window(home).Property(SkinHelper.ListItem.DurationAndRunTime))">$INFO[Window(home).Property(SkinHelper.ListItem.DurationAndRunTime)]</value> -->
<value condition="!String.IsEmpty(ListItem.Duration) + !String.Contains(ListItem.Duration,min) + !String.Contains(ListItem.Duration,">$INFO[ListItem.Duration,, min.]</value> <!-- $INFO[ListItem.Duration(hh,, h]$INFO[ListItem.Duration(mm,, min] -->
<value condition="!String.IsEmpty(ListItem.Duration)">$INFO[ListItem.Duration(hh,,h] $INFO[ListItem.Duration(mm,,min]</value>
</variable>
You should be able to switch via settings in titan.
settimgs-> skin -> geneneral skin setting -> disable hours duration on / off slider
I forget, the code is for Leia, for Krypton you should just replace the last line of code to get ** h ** min, instead of **:**:**
2018-04-06, 10:30
(2018-04-06, 10:22)mardukL Wrote: [ -> ]yeah already tried that too. but it wont work(2018-04-06, 08:41)irafihggnaba Wrote: [ -> ]EDIT(2018-04-05, 19:10)mardukL Wrote: [ -> ]If its just for Titan, you can use this for includesVariables.xmlThank you, I tried but it wont work, still in minutes
Its also a BUG fix, when enebled " Dont Show hours in info" in the skin , it will no longer show booth
LINE 273 includesVariables.xml
xml:
includesVariables.xml
<variable name="ListItemDuration"> <!--$INFO[Window(home).Property(SkinHelper.ListItem.RunTime),, $LOCALIZE[12391]] = Runtime in minutes) script.module.metadatautils\lib\helpers\utils.py-->
<value condition="!Skin.HasSetting(SkinHelper.DisableHoursDuration) + !String.IsEmpty(Window(home).Property(SkinHelper.ListItem.DurationAndRunTime))">$INFO[Window(home).Property(SkinHelper.ListItem.RunTime),, $LOCALIZE[12391]]</value> <!-- default <value condition="!Skin.HasSetting(SkinHelper.DisableHoursDuration) + !String.IsEmpty(Window(home).Property(SkinHelper.ListItem.DurationAndRunTime))">$INFO[Window(home).Property(SkinHelper.ListItem.DurationAndRunTime)]</value> -->
<value condition="!String.IsEmpty(ListItem.Duration) + !String.Contains(ListItem.Duration,min) + !String.Contains(ListItem.Duration,">$INFO[ListItem.Duration,, min.]</value> <!-- $INFO[ListItem.Duration(hh,, h]$INFO[ListItem.Duration(mm,, min] -->
<value condition="!String.IsEmpty(ListItem.Duration)">$INFO[ListItem.Duration(hh,,h] $INFO[ListItem.Duration(mm,,min]</value>
</variable>
You should be able to switch via settings in titan.
settimgs-> skin -> geneneral skin setting -> disable hours duration on / off slider
I forget, the code is for Leia
2018-04-06, 10:35
What does it show if enebled and disabled.
lets say a movie has 124 minutes runtime
to me its
124 mins if on
1h 4 mins if off.
default 1:04 if off (i think)
not at home
lets say a movie has 124 minutes runtime
to me its
124 mins if on
1h 4 mins if off.
default 1:04 if off (i think)
not at home
2018-04-06, 10:38
(2018-04-06, 10:35)mardukL Wrote: [ -> ]What does it show if enebled and disabled.enabled: 136 minutes.
lets say a movie has 124 minutes runtime
to me its
124 mins if on
1h 4 mins if off.
default 1:04 if off (i think)
not at home
disabled: 2:16 (136 minutes).
if i disabled it, need to load 1 seconds to show up and sometimes it wont show like that, just regular 136 minutes.
what i want is 2h 16m
2018-04-07, 13:22
EDIT: HERE IS WORKING CODE :-D
Still no time, but maybe this help your setup.
Source
Try to get info string
[s]
And test.
I hope its not wrote that confusing.and still no idea if it will work.cant test myself cause not at home that weekend
xml:
<variable name="ListItemDuration"> <!-- MODDED ; RunTime = MINUTES IN TOTAL, Duration =hh:mm-->
<value condition="!Skin.HasSetting(SkinHelper.DisableHoursDuration) + !IsEmpty(Window(home).Property(SkinHelper.ListItem.DurationAndRunTime))">$INFO[Window(home).Property(SkinHelper.ListItem.Duration.Hours,, h] $INFO[Window(home).Property(SkinHelper.ListItem.Duration.Minutes,, min] </value> <!-- TITAN SEETING HOURS ON -->
<value condition="!IsEmpty(ListItem.Duration) + !SubString(ListItem.Duration,min) + !SubString(ListItem.Duration,">$INFO[ListItem.Duration,, min.]</value> <!-- TITAN SEETING HOURS OFF -->
<value condition="!IsEmpty(ListItem.Duration)">$INFO[ListItem.Duration]</value>
</variable>
Still no time, but maybe this help your setup.
Source
xml:
"Duration": formatted_time,
"Duration.Hours": hours,
"Duration.Minutes": minutes,
"Runtime": total_minutes,
"RuntimeExtended": "%s %s" % (total_minutes, xbmc.getLocalizedString(12391)),
"DurationAndRuntime": "%s (%s min.)" % (formatted_time, total_minutes),
"DurationAndRuntimeExtended": "%s (%s %s)" % (formatted_time, total_minutes, xbmc.getLocalizedString(12391)) -->
Try to get info string
[s]
[/s]xml:
$INFO[Window(home).Property(SkinHelper.ListItem.Duration.Hours] h $INFO[Window(home).Property(SkinHelper.ListItem.Duration.Minutes] min
And test.
I hope its not wrote that confusing.and still no idea if it will work.cant test myself cause not at home that weekend
2018-04-07, 16:36
(2018-04-07, 13:22)mardukL Wrote: [ -> ]EDIT: HERE IS WORKING CODE :-DWorked!! thank youuu
xml:
<variable name="ListItemDuration"> <!-- MODDED ; RunTime = MINUTES IN TOTAL, Duration =hh:mm-->
<value condition="!Skin.HasSetting(SkinHelper.DisableHoursDuration) + !IsEmpty(Window(home).Property(SkinHelper.ListItem.DurationAndRunTime))">$INFO[Window(home).Property(SkinHelper.ListItem.Duration.Hours,, h] $INFO[Window(home).Property(SkinHelper.ListItem.Duration.Minutes,, min] </value> <!-- TITAN SEETING HOURS ON -->
<value condition="!IsEmpty(ListItem.Duration) + !SubString(ListItem.Duration,min) + !SubString(ListItem.Duration,">$INFO[ListItem.Duration,, min.]</value> <!-- TITAN SEETING HOURS OFF -->
<value condition="!IsEmpty(ListItem.Duration)">$INFO[ListItem.Duration]</value>
</variable>
Still no time, but maybe this help your setup.
SourceTry to get info stringxml:
"Duration": formatted_time,
"Duration.Hours": hours,
"Duration.Minutes": minutes,
"Runtime": total_minutes,
"RuntimeExtended": "%s %s" % (total_minutes, xbmc.getLocalizedString(12391)),
"DurationAndRuntime": "%s (%s min.)" % (formatted_time, total_minutes),
"DurationAndRuntimeExtended": "%s (%s %s)" % (formatted_time, total_minutes, xbmc.getLocalizedString(12391)) -->
[s][/s]xml:
$INFO[Window(home).Property(SkinHelper.ListItem.Duration.Hours] h $INFO[Window(home).Property(SkinHelper.ListItem.Duration.Minutes] min
And test.
I hope its not wrote that confusing.and still no idea if it will work.cant test myself cause not at home that weekend