- July 25, 2010
- 4,024
- 1,420
- Home Country
-
Germany
@morpheus_xx
I need your help again
I am working on a MAS implementation for MP2 adn for http://wiki.team-mediaportal.com/1_...opers/API_Documentation/MAS#GetTVEpisodeCount
I need to get all episodes from a season.
If I take a look into the DB -> M_MEDIAITEM I can see a Mediaitem for the Series, each Season and each episode.
But there are two questions:
1) How are they linked together?
2) The Title for the season is lokalized -> I could use String.Split(' ') and convert the number to an int and than selecting all Items where the SeriesAspect -> Season is equal to that number.
But this feels like a really dirty hack to me. Any suggestions?
Looking at the client Side SeriesFilterBySeasonScreenData.cs I found this:
I guess this is pretty much option 2
I need your help again
I need to get all episodes from a season.
If I take a look into the DB -> M_MEDIAITEM I can see a Mediaitem for the Series, each Season and each episode.
But there are two questions:
1) How are they linked together?
2) The Title for the season is lokalized -> I could use String.Split(' ') and convert the number to an int and than selecting all Items where the SeriesAspect -> Season is equal to that number.
But this feels like a really dirty hack to me. Any suggestions?
Looking at the client Side SeriesFilterBySeasonScreenData.cs I found this:
Code:
// subViewSpecification contains "Series S01" pattern, here we only want to show the season number.
string season = subViewSpecification.ViewDisplayName ?? string.Empty;
season = season.Substring(season.LastIndexOf("S") + 1);
return LocalizationHelper.Translate(_navbarSubViewNavigationDisplayLabel, season);
I guess this is pretty much option 2