Hi All,
Just wondering if there is a way to set the number of unplayed episodes in a SeasonObject?
Looking at the docs, setting episode_count will set the total number of items in a season, but there doesn’t seem to be a way to set the number of unplayed items. Just wondering if there is an undocumented way of setting it?
The reason I’m asking is that, as things stand, returning a season object to desktop clients with the default skin will show the place holder for where the number of unplayed items would be but is just left blank, which looks a bit silly and as if something’s gone wrong.
I’m pretty sure that unwatched counts are not currently tracked via PMS or the plugin framework. So, setting unwatched counts (if it were possible, which I don’t think it is) would be pointless. For now anyway…
Cheers for the response.
The only way it could really work with Plex automating the whole thing would be to pass in all the episodes in the season to the seasonObject so that it could then itself work out the unplayed count (i.e: total number of items - number of played items)... and I'm not expecting Plex to make things that easy!
So I was potentially thinking a little lower level than that, with the plugin manually working out how many episodes in the season were unplayed.
It could do so by either manually querying Plex to see if each item had been played in the season (i.e: manually doing what Plex would need to do itself) or using some other means to know how which items had been played (e.g: using the underlying provider to keep track of which items have been played across any number of devices, some of which may or may not be Plex).
At the end of the day, looking at the XML that's generated when browsing a season stored on a local disk, the unplayed count is just an additional attribute of the season XML entity, which I'm assuming is set by working out the set difference of season items and unplayed items.
Any idea on how open the Plex devs are to taking Framework updates?
I think they’re always open to suggestion. Whether or not (or when) an idea is going to get implemented is of course up to them 
If you’re interested in further discussion, PM Elan with your email address and he can get you access to the plugin developers’ private chat room.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.