Skip to content

Commit 8f044e5

Browse files
committed
removed default.py
1 parent 0926a7b commit 8f044e5

File tree

2 files changed

+10
-91
lines changed

2 files changed

+10
-91
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
script.duration
22
===============
33

4-
Displays movies duration in hours and minutes instead of only minutes while navigating in Kodi movies library. Kodi skin has to be tweaked.
4+
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.
55

66
Exemple: __108 minutes__ is now displayed __1h48__.
77

@@ -12,26 +12,26 @@ When launched the script provides those properties :
1212
* `Window(Home).Property(Duration.Minutes)`
1313
* `Window(Home).Property(Duration.DBID)`
1414

15-
##Exemple of integration in Estuary skin
15+
### Exemple of integration in Estuary skin
1616

1717
2 files need to be modified as follow :
1818

19-
###Variables.xml
19+
#### Variables.xml
2020

2121
Add this new variable at the end of the file (before the `</include>`) :
2222
```
2323
<variable name="ItemDuration">
2424
<value condition="System.HasAddon(script.duration)+
25-
[Window.IsVisible(Videos) | Window.IsVisible(Movieinformation)] +
26-
!String.IsEmpty(Window(Home).Property(Duration.Hours)) +
27-
!String.IsEqual(Window(Home).Property(Duration.Hours),0) +
28-
!String.IsEmpty(Window(Home).Property(Duration.DBID)) + String.IsEqual(Window(Home).Property(Duration.DBID),ListItem.DBID)">$INFO[Window(Home).Property(Duration.HoursMinutes)]
29-
</value>
30-
<value>$INFO[ListItem.Duration] min</value>
25+
[Window.IsVisible(Videos) | Window.IsVisible(Movieinformation)] +
26+
!String.IsEmpty(Window(Home).Property(Duration.Hours)) +
27+
!String.IsEqual(Window(Home).Property(Duration.Hours),0) +
28+
!String.IsEmpty(Window(Home).Property(Duration.DBID)) +
29+
String.IsEqual(Window(Home).Property(Duration.DBID),ListItem.DBID)">$INFO[Window(Home).Property(Duration.HoursMinutes)]</value>
30+
<value>$INFO[ListItem.Duration] min</value>
3131
</variable>
3232
```
3333

34-
###Includes.xml
34+
#### Includes.xml
3535

3636
Replace `<label>$INFO[$PARAM[infolabel_prefix]ListItem.Duration]</label>` with `<label>$VAR[ItemDuration]</label>`
3737

default.py

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)