Jump to content


Photo
Completed

[Feature request] Additional ListItem properties

Feature suggestion

  • This topic is locked This topic is locked
5 replies to this topic

#1 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 10:25 AM

Posted 11 May 2014 - 01:18 PM

There are quite a few informations for ListItems that XBMB3C doesn't support.

See <here>

 

Although I don't think everything should be supported, there are a few properties I would like to see in XBMB3C.

While comparing Arctic in XBMC and XBMB3C mode, I especially felt like the TV specific counts would be nice to have.

ListItem.Property(TotalSeasons)	         Shows the total number of seasons for the currently selected tvshow
ListItem.Property(TotalEpisodes)	 Shows the total number of episodes for the currently selected tvshow or season
ListItem.Property(WatchedEpisodes)	 Shows the number of watched episodes for the currently selected tvshow or season
ListItem.Property(UnWatchedEpisodes)	 Shows the number of unwatched episodes for the currently selected tvshow or season
ListItem.Property(NumEpisodes)	         Shows the number of total, watched or unwatched episodes for the currently selected tvshow or season, based on the the current watched filter.

Almost every view in Arctic uses one or multiple of those properties for TV shows and seasons.

I know there is a setting to display unwatched/total episode count behind the title, but that is very unflexible and not as nice looking as the display of the counts only when and where the skinner intended them to.

 

I already made the suggestion somwhere else, but thought it would be better to start an own thread. Maybe there are other properties that would be good additions?



#2 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4755 posts
  • Local time: 04:25 AM
  • LocationAustin, TX

Posted 11 May 2014 - 04:15 PM

Look in the Swagger documentation here:

 

http://<yourServerId>/mediabrowser/swagger-ui/index.html#!/Users/getUsersUserIdItems_get_27

 

And you will see some are easy, and some are not.  It also depends on which view level you want this info.  Some of the info is not available at the top level, and while we could get it with a recursive listing, that would take a really long time and not be worthwhile - so some of these might drive MB3 feature requests.

 

xnappo

 

[EDIT] after looking a little more, I don't think this is too hard...


Edited by xnappo, 11 May 2014 - 04:20 PM.

  • tube82 likes this

#3 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4755 posts
  • Local time: 04:25 AM
  • LocationAustin, TX

Posted 17 May 2014 - 04:18 PM

I added this stuff - but I delete shows after I watch them so don't have much to test with... So please test.

 

xnappo


  • tube82 likes this

#4 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 10:25 AM

Posted 18 May 2014 - 06:15 AM

Thanks for implementing this!

 

It doesn't seem to work yet, though.

I tested with Arctic and Aeon Nox and the counts don't show in the views I tested.

 

This is how one of the properties is used in Arctic:

<value condition="Container.Content(tvshows) | Container.Content(seasons)">$INFO[ListItem.Property(UnWatchedEpisodes),, $LOCALIZE[16101]]</value> 

[Edit]

I just figured out what the problem with 'UnWatchedEpisodes' is. You called it 'UnwatchedEpisodes' instead of 'UnWatchedEpisodes'. It works when I change it!


Edited by tube82, 18 May 2014 - 08:23 AM.


#5 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4755 posts
  • Local time: 04:25 AM
  • LocationAustin, TX

Posted 18 May 2014 - 09:49 AM

Okay - fixed.  

 

xnappo


  • im85288 and tube82 like this

#6 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 10:25 AM

Posted 18 May 2014 - 10:21 AM

Awesome, works like a charm!

 

To check:

When you use Wall view in Aeon Nox the unwatched count is now displayed on each series and season cover. The count is correct for both, too.

'Total episodes' works as well. E.g: Arctic 'Banner List' view shows both, total episodes and unwatched episodes count! 


  • xnappo likes this





Also tagged with one or more of these keywords: Completed, Feature suggestion

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users