2017-08-25, 00:02
(2017-08-20, 19:07)maxtherabbit Wrote: In the plot outline/subtitle info field there should be a space between "Jakso" (episode) and the episode number. If the plot outline/subtitle info field contains some text but no season or episode number, there is an unnecessary comma in the end.
I found a way to make that PVR guide info header look nicer.
In Variables.xml
replace
Code:
<value condition="Window.IsActive(pvrguideinfo)">$INFO[ListItem.EpisodeName,,$COMMA ]$INFO[ListItem.Season,$LOCALIZE[20373] ]$INFO[ListItem.Episode, - $LOCALIZE[20359]]</value>
with this
Code:
<value condition="Window.IsActive(pvrguideinfo) + String.IsEmpty(ListItem.Season) + String.IsEmpty(ListItem.Episode)">$INFO[ListItem.EpisodeName,,]</value>
<value condition="Window.IsActive(pvrguideinfo) + [String.IsEmpty(ListItem.Season) | String.IsEmpty(ListItem.Episode)]">$INFO[ListItem.EpisodeName,,$COMMA ]$INFO[ListItem.Season,$LOCALIZE[20373] ,]$INFO[ListItem.Episode,$LOCALIZE[20359] ,]</value>
<value condition="Window.IsActive(pvrguideinfo) + !String.IsEmpty(ListItem.Season) + !String.IsEmpty(ListItem.Episode)">$INFO[ListItem.EpisodeName,,$COMMA ]$INFO[ListItem.Season,$LOCALIZE[20373] , - ]$INFO[ListItem.Episode,$LOCALIZE[20359] ,]</value>
Now there are no unnecessary commas or hyphens even if all of the season numbers, episode numbers or episode titles are not available.