- March 24, 2007
- 12,073
- 7,459
- Home Country
- Germany
- Moderator
- #31
I have no full example, and I'm also not sure if it is supported this way yet.To implement the un-/watched symbol for a series, I have to count the number of un-/watched episodes per series. Any idea how to do that?
Query of MediaLibrary is done like shown here in "LatestMediaModel": https://github.com/MediaPortal/Medi...ts/Media/Models/LatestMediaModel.cs#L118-L132.
You need to pass AspectIds (Guid) as argument which needs to be loaded and can supply filters on aspect information.
For "watched" filter feature I have added those 2 queries: https://github.com/MediaPortal/Medi...riteria/FilterByPlayCountCriterion.cs#L48-L61.
Returning count of both groups.
But all ways mean there needs code to be written before you can access this information from skin.