2018-12-31, 14:42
(2018-12-28, 11:32)Keksebacker Wrote: 2/ Remaining duration of live tvI made some changes to fix this ill leave the code here along with other small changes all for live tv.:
The remaining duration of live tv doesn't work correctly in the osd.
For every other content like movies or netflix and so on it works properly.
Also in the small channel list its shown correctly.
-Included the season and episode details if available.
-If no channel logo was available the channel details would shift left.
-Fixed EPG Runtime. KODI 18 only
Controls changed in IncludesOSD.xml name="OSDInfoPanelNetflix":
Code:
<!-- details info --><!-- OSDLabel9 -->
<control type="label">
<width>1000</width>
<height>45</height>
<align>left</align>
<font>Light24</font>
<textcolor>white</textcolor>
<shadowcolor>dimgray</shadowcolor>
<label>$VAR[OSDLabel9]</label>
<visible>!VideoPlayer.Content(movies)</visible>
<scroll>false</scroll>
</control>
Code:
<variable name="OSDImage">
<value condition="![VideoPlayer.Content(livetv) + Skin.HasSetting(NoPvrArtOSD)] + !String.IsEmpty(Window(Home).Property(SkinHelper.Player.AnimatedPoster))">$INFO[Window(Home).Property(SkinHelper.Player.AnimatedPoster)]</value>
<value condition="![VideoPlayer.Content(livetv) + Skin.HasSetting(NoPvrArtOSD)] + !String.IsEmpty(Player.Art(tvshow.poster))">$INFO[Player.Art(tvshow.poster)]</value>
<value condition="![VideoPlayer.Content(livetv) + Skin.HasSetting(NoPvrArtOSD)] + !String.IsEmpty(Player.Art(poster))">$INFO[Player.Art(poster)]</value>
<value condition="![VideoPlayer.Content(livetv) + Skin.HasSetting(NoPvrArtOSD)] + !String.IsEmpty(Window(Home).Property(SkinHelper.Player.Art.Poster))">$INFO[Window(Home).Property(SkinHelper.Player.Art.Poster)]</value>
<value condition="VideoPlayer.Content(livetv) + !String.IsEmpty(VideoPlayer.Cover) + String.Contains(VideoPlayer.Cover,DefaultVideo)"></value>
<value condition="!String.IsEmpty(VideoPlayer.Cover)">$INFO[VideoPlayer.Cover]</value>
<value condition="!String.IsEmpty(Player.Icon)">$INFO[Player.Icon]</value>
<value>DefaultVideo.png</value>
</variable>
<variable name="OSDLabel7">
<value condition="Player.HasVideo + String.IsEqual(Window(Home).Property(subtitlemenu), show)"></value>
<value condition="Player.HasVideo + !String.IsEqual(Window(Home).Property(subtitlemenu), show) + VideoPlayer.Content(livetv)">$INFO[VideoPlayer.ChannelNumberLabel,, • ]$INFO[VideoPlayer.ChannelName]</value>
<value condition="Player.HasVideo + !String.IsEqual(Window(Home).Property(subtitlemenu), show) + Player.IsInternetStream + !String.IsEmpty(Window(Home).Property(SkinHelper.Player.AddonName)) + String.IsEmpty(VideoPlayer.TvShowTitle)">$INFO[Window(Home).Property(SkinHelper.Player.AddonName)]</value>
<value condition="Player.HasVideo + !String.IsEqual(Window(Home).Property(subtitlemenu), show) + VideoPlayer.Content(episodes) + !String.IsEmpty(VideoPlayer.TvShowTitle)">$INFO[VideoPlayer.TVShowTitle]</value>
<value condition="Player.HasAudio + !String.IsEmpty(Window(Home).Property(SkinHelper.Player.AddonName))">$INFO[Window(Home).Property(SkinHelper.Player.AddonName)]</value>
<value condition="Player.HasVideo + !String.IsEqual(Window(Home).Property(subtitlemenu), show)">$INFO[VideoPlayer.Title]</value>
<value>$LOCALIZE[31040]</value>
</variable>
<variable name="OSDLabel8">
<value condition="Player.HasVideo + !String.IsEqual(Window(Home).Property(subtitlemenu), show) + VideoPlayer.Content(Episodes)">$INFO[VideoPlayer.Season,$LOCALIZE[20373] , | ]$INFO[VideoPlayer.Episode,$LOCALIZE[20359] , | ]$INFO[VideoPlayer.Title]</value>
<value condition="Player.HasVideo + !String.IsEqual(Window(Home).Property(subtitlemenu), show) + VideoPlayer.Content(Movies)">$INFO[VideoPlayer.year]$INFO[VideoPlayer.Mpaa, | ,]$INFO[VideoPlayer.Duration(mins), | ,min]</value>
<value condition="Player.HasVideo + !String.IsEqual(Window(Home).Property(subtitlemenu), show) + VideoPlayer.Content(livetv) + [!String.IsEmpty(VideoPlayer.Season) + !String.IsEmpty(VideoPlayer.Episode) + !String.IsEmpty(VideoPlayer.EpisodeName)]">$INFO[VideoPlayer.Title] - S$INFO[VideoPlayer.Season]E$INFO[VideoPlayer.Episode] - $INFO[VideoPlayer.EpisodeName]</value>
<value condition="Player.HasVideo + !String.IsEqual(Window(Home).Property(subtitlemenu), show) + VideoPlayer.Content(livetv) + [!String.IsEmpty(VideoPlayer.Episode) + !String.IsEmpty(VideoPlayer.EpisodeName)]">$INFO[VideoPlayer.Title] - E$INFO[VideoPlayer.Episode] - $INFO[VideoPlayer.EpisodeName]</value>
<value condition="Player.HasVideo + !String.IsEqual(Window(Home).Property(subtitlemenu), show) + VideoPlayer.Content(livetv) + [!String.IsEmpty(VideoPlayer.EpisodeName)]">$INFO[VideoPlayer.Title] - $INFO[VideoPlayer.EpisodeName]</value>
<value condition="Player.HasVideo + !String.IsEqual(Window(Home).Property(subtitlemenu), show) + VideoPlayer.Content(livetv) + [!String.IsEmpty(VideoPlayer.Title)]">$INFO[VideoPlayer.Title]</value>
</variable>
<variable name="OSDLabel9">
<value condition="Player.HasVideo + !String.IsEqual(Window(Home).Property(subtitlemenu), show) + VideoPlayer.Content(livetv) + !String.IsEqual(PVR.EpgEventDuration(mins),0) + VideoPlayer.HasEpg">$INFO[PVR.EpgEventDuration(mins)]min</value>
<value condition="Player.HasVideo + !String.IsEqual(Window(Home).Property(subtitlemenu), show) + VideoPlayer.Content(livetv)"></value>
<value>$VAR[premiered_or_year]$INFO[VideoPlayer.Mpaa, | ,]$INFO[VideoPlayer.Duration(mins), | ,min]</value>
</variable>