Skip to content

Commit

Permalink
2017-12-28 new / renamed infolabels
Browse files Browse the repository at this point in the history
Add some support for the new EPG variables jingai#32 by moving the seek time
to a variable
https://forum.kodi.tv/showthread.php?tid=298565&pid=2683795#pid2683795
  • Loading branch information
MacGyverr committed May 29, 2018
1 parent 3dd118f commit be37aae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 720p/Includes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@
<align>right</align>
<font>METF_OSDTime</font>
<textcolor>OSDPlayingDuration</textcolor>
<label>$INFO[VideoPlayer.Time] [COLOR TextNF]/[/COLOR] $INFO[VideoPlayer.Duration]</label>
<label>$VAR[SeekTimeLabel]</label>
</control>
<!-- Finish Time -->
<control type="label">
Expand Down Expand Up @@ -1669,7 +1669,7 @@
<aligny>center</aligny>
<align>left</align>
<font>METF_OSDTime</font>
<label>$INFO[VideoPlayer.Time] [COLOR TextNF]/[/COLOR] $INFO[VideoPlayer.Duration]</label>
<label>$VAR[SeekTimeLabel]</label>
<textcolor>OSDPlayingDuration</textcolor>
</control>
<!-- Chapter -->
Expand Down
6 changes: 6 additions & 0 deletions 720p/Includes_Variables.xml
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,12 @@
<value condition="Integer.IsGreater(Player.ChapterCount,1) + !VideoPlayer.Content(LiveTV)">$INFO[Player.Chapter,$LOCALIZE[21396]: ]$INFO[Player.ChapterCount, / ]$INFO[Player.ChapterName,[COLOR=TitleText] - (,)[/COLOR]]</value>
<value>$INFO[VideoPlayer.Tagline]</value>
</variable>
<variable name="SeekTimeLabel">
<value condition="!String.IsEmpty(Player.SeekNumeric)">[B]$INFO[Player.SeekNumeric(hh:mm:ss)][/B]</value>
<value condition="Player.Seeking">$INFO[Player.SeekTime]$INFO[Player.Duration, [COLOR TextNF]/[/COLOR] ]</value>
<value condition="VideoPlayer.HasEpg">$INFO[PVR.EpgEventElapsedTime]$INFO[PVR.EpgEventDuration, [COLOR TextNF]/[/COLOR] ]</value>
<value>$INFO[Player.Time]$INFO[Player.Duration, [COLOR TextNF]/[/COLOR] ]</value>
</variable>
<variable name="GoPlaylist">
<value condition="Window.IsActive(videos) + !String.IsEqual(Playlist.Length(video),0)">ActivateWindow(videoplaylist)</value>
<value condition="Window.IsActive(music) + !String.IsEqual(Playlist.Length(music),0)">ActivateWindow(musicplaylist)</value>
Expand Down

0 comments on commit be37aae

Please sign in to comment.