Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

script.duration

Displays movies duration in hours and minutes instead of only minutes while navigating in Kodi 17 movies library. Kodi skin has to be tweaked, see exemple below.

Exemple: 108 minutes is now displayed 1h48.

When launched the script provides those properties :

  • Window(Home).Property(Durations.HoursMinutes)
  • Window(Home).Property(Durations.Hours)
  • Window(Home).Property(Durations.Minutes)
  • Window(Home).Property(Durations.DBID)

Exemple of integration in Estuary skin

2 files need to be modified as follow :

Variables.xml

Add this new variable at the end of the file (before the </include>) :

<variable name="ItemDuration">
    <value condition="System.HasAddon(script.duration)+
        [Window.IsVisible(Videos) | Window.IsVisible(Movieinformation)] +
        !String.IsEmpty(Window(Home).Property(Durations.Hours)) +
        !String.IsEqual(Window(Home).Property(Durations.Hours),0) +
        !String.IsEmpty(Window(Home).Property(Durations.DBID)) +
        String.IsEqual(Window(Home).Property(Durations.DBID),ListItem.DBID)">$INFO[Window(Home).Property(Durations.HoursMinutes)]</value>
    <value>$INFO[ListItem.Duration] min</value>
</variable>

Includes.xml

Replace <label>$INFO[ListItem.Duration,, $LOCALIZE[31132]]</label> with <label>$VAR[ItemDuration]</label>


About

Addon to display movies durations in hours:minutes instead of minutes in Kodi

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.