Kodi Community Forum
Total Episodes in season on OSD - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Total Episodes in season on OSD (/showthread.php?tid=367174)



Total Episodes in season on OSD - thorindwarf - 2022-02-22

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!


RE: Total Episodes in season on OSD - thorindwarf - 2022-03-06

So, I guess that's not possible?


RE: Total Episodes in season on OSD - hullabaloo - 2022-03-07

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


RE: Total Episodes in season on OSD - thorindwarf - 2022-03-07

(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?


RE: Total Episodes in season on OSD - Dumyat - 2022-03-07

(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.


RE: Total Episodes in season on OSD - thorindwarf - 2022-03-07

(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


RE: Total Episodes in season on OSD - Dumyat - 2022-03-07

(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!


RE: Total Episodes in season on OSD - bsoriano - 2022-03-08

@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


RE: Total Episodes in season on OSD - mardukL - 2022-03-09

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)]


RE: Total Episodes in season on OSD - bsoriano - 2022-03-09

(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]


RE: Total Episodes in season on OSD - mardukL - 2022-03-10

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



RE: Total Episodes in season on OSD - nixwissen - 2024-05-08

Has anyone enabled this request? Because I wanted to do the same thing and so far I haven't been successful.
Season x • Episode y of z. I don't want to stop the episode to see, how many episodes there are till the end of the season.