Total Episodes in season on OSD
#1
Hi,

Is there a way to access the count of total episodes in the season when an episode of it is currently playing?
I want to put something like this on OSD info:  Season 5 • Episode 4 of 10.

Thanks!
Reply
#2
So, I guess that's not possible?
Reply
#3
you want read about infoLables on this page  search for things like ListItem.Season, ListItem.Property(TotalEpisodes), ListItem.Property(WatchedEpisodes) or ListItem.Property(NumEpisodes) and then add them to a label on your osd
Reply
#4
(2022-03-07, 00:04)hullabaloo Wrote: you want read about infoLables on this page  search for things like ListItem.Season, ListItem.Property(TotalEpisodes), ListItem.Property(WatchedEpisodes) or ListItem.Property(NumEpisodes) and then add them to a label on your osd

I already did. And still I'm asking that as ListItem.Property(TotalEpisodes) is empty for OSD when playing an episode.
Do you have an example for this?
Reply
#5
(2022-03-07, 19:17)thorindwarf Wrote:
(2022-03-07, 00:04)hullabaloo Wrote:  
I already did. And still I'm asking that as ListItem.Property(TotalEpisodes) is empty for OSD when playing an episode.
Do you have an example for this?
ListItem labels will not work on the OSD.
You need VideoPlayer or Player labels, but Unfortunately, these ListItem labels do not appear to be available as VideoPlayer or Player labels.
Shame, I think what you were to trying achieve would look nice on the OSD.
Maybe somebody else will have other ideas that you could try.
Reply
#6
(2022-03-07, 19:53)Dumyat Wrote:
(2022-03-07, 19:17)thorindwarf Wrote:
(2022-03-07, 00:04)hullabaloo Wrote:  
I already did. And still I'm asking that as ListItem.Property(TotalEpisodes) is empty for OSD when playing an episode.
Do you have an example for this?
ListItem labels will not work on the OSD.
You need VideoPlayer or Player labels, but Unfortunately, these ListItem labels do not appear to be available as VideoPlayer or Player labels.
Shame, I think what you were to trying achieve would look nice on the OSD.
Maybe somebody else will have other ideas that you could try.

Exactly! That's why I'm asking for help from the skin gurus Smile
Reply
#7
(2022-03-07, 20:22)thorindwarf Wrote:
(2022-03-07, 19:53)Dumyat Wrote:
(2022-03-07, 19:17)thorindwarf Wrote: I already did. And still I'm asking that as ListItem.Property(TotalEpisodes) is empty for OSD when playing an episode.
Do you have an example for this?
ListItem labels will not work on the OSD.
You need VideoPlayer or Player labels, but Unfortunately, these ListItem labels do not appear to be available as VideoPlayer or Player labels.
Shame, I think what you were to trying achieve would look nice on the OSD.
Maybe somebody else will have other ideas that you could try.

Exactly! That's why I'm asking for help from the skin gurus Smile
Well, good luck with that!
Reply
#8
@thorindwarf , as far as I know, this is not possible today.  It might be possible to get this info via an addon.  I have asked @jurialmunkey if he would be willing to add this info in tmdb helper.  If he does (or another addon does), then you could add a hidden list in the video OSD that has just 1 item with the details for the episode, including the total number of episodes in the season.  Then, you could display this info as you requested in your initial post.

Regards,

Bart
Amber Maintainer
Main HTPC: Intel Core i7, 32GB, nVidia GTX1080, Windows 11 Soundbar: Samsung HW-Q950A TV: LG CX Kodi: 19.3 Skin: Amber
Reply
#9
such videoplayer labels doent exist

BUT you can use a hiddem container
( in that case load current tv show of curretly playing episode,)

e.g. call this list(s) videoosd.xml
xml:

<control type="list" id="699">
<description>get listitem tvshowinfo</description>
<content limit="1">$VAR[CurrentlyShow]</content>
</control>
<control type="list" id="698">
<description>get listitem info cutrentitem</description>
<content limit="1">$VAR[CurrentlyPlayingItem]</content>
</control>


<variable name="CurrentlyShow">
<value condition="player.hasvideo + videoplayer.content(episodes)">videodb://tvshows/titles/?
xsp=%7B%22rules%22%3A%7B%22and%22%3A%5B%7B%22field%22%3A%22title%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[VideoPlayer.TvShowTitle]%22%5D%7D%5D%7D%2C%22type%22%3A%22tvshows%22%7D</value>
<value>-</value>
</variable>

<variable name="CurrentlyPlayingItem">
<value condition="player.hasaudio + !String.IsEmpty(musicplayer.dbid)">musicdb://songs/?
songid=$INFO[musicplayer.dbid]</value>
<value condition="player.hasvideo + videoplayer.content(movies)">videodb://movies/titles/?
xsp=%7B%22rules%22%3A%7B%22and%22%3A%5B%7B%22field%22%3A%22title%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[Player.Title]%22%5D%7D%5D%7D%2C%22type%22%3A%22movies%22%7D</value>
<value condition="player.hasvideo + videoplayer.content(episodes)">videodb://tvshows/titles/-1/-1/?
xsp=%7B%22rules%22%3A%7B%22and%22%3A%5B%7B%22field%22%3A%22title%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[Player.Title]%22%5D%7D%5D%7D%2C%22type%22%3A%22episodes%22%7D</value>
</variable>

you can/should be able to use
use listitems instead of player.*infolabel* , videoplayer.*infolabel*
$INFO[container(699).listitem(*infolabel*)] for tvshows
$INFO[container(698).listitem(*infolabel*)] for the currently playing item

e.g. container(699).ListItem.Property(TotalSeasons) , container(699).ListItem.Property(TotalEpisodes)
or maybe $INFO[Window(Home).Property(TMDbHelper.container(699).ListItem.Season)] , $INFO[Window(Home).Property(TMDbHelper.container(699).ListItem.Episode)]
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#10
(2022-03-09, 10:00)mardukL Wrote: you can/should be able to use
use listitems instead of player.*infolabel* , videoplayer.*infolabel*
$INFO[container(699).listitem(*infolabel*)] for tvshows
$INFO[container(698).listitem(*infolabel*)] for the currently playing item

@mardukL , thank you for your help. I guess I could try to have the season of the currently playing episode be the path for the hidden container, and then I could have the number of episodes in the season.  I will test this.

Regards,

Bart

EDIT: Did not work as expected, if I use this as the path for the hidden list, it takes the first episode of the season, not the season itself: videodb://tvshows/titles/$INFO[VideoPlayer.TvShowDBID]/$INFO[VideoPlayer.Season]/?tvshowid=$INFO[VideoPlayer.TvShowDBID]
Amber Maintainer
Main HTPC: Intel Core i7, 32GB, nVidia GTX1080, Windows 11 Soundbar: Samsung HW-Q950A TV: LG CX Kodi: 19.3 Skin: Amber
Reply
#11
Hm.. i use this content in a dialog. And it worked. Did you check that you omit the lmit attribute for this case ?

i mean
will show all episodes - so use $INFO[Container(*NR*).NumItems] - for all episodes
xml:
videodb://tvshows/titles/$INFO[VideoPlayer.TvShowDBID]/$INFO[VideoPlayer.Season]/?tvshowid=$INFO[VideoPlayer.TvShowDBID]

if you just wanne have the remaining episodes
xml:
videodb://tvshows/titles/-1/-1/?
xsp=%7B%22rules%22%3A%7B%22and%22%3A%5B%7B%22field%22%3A%22tvshow%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[VideoPlayer.TVShowTitle]%22%5D%7D%2C%7B%22field%22%3A%22season%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[VideoPlayer.Season]%22%5D%7D%2C%7B%22field%22%3A%22episode%22%2C%22operator%22%3A%22greaterthan%22%2C%22value%22%3A%5B%22$INFO[VideoPlayer.Episode]%22%5D%7D%5D%7D%2C%22type%22%3A%22episodes%22%7D
Skins |  Titan M O D   •   S W A N (WIP)
Reply

Logout Mark Read Team Forum Stats Members Help
Total Episodes in season on OSD0