home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
Get every episode from a Season
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="FreakyJ" data-source="post: 1154820" data-attributes="member: 106003"><p>[USER=48495]@morpheus_xx[/USER] </p><p>I need your help again <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /> I am working on a MAS implementation for MP2 adn for <a href="http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/17_Extensions/Remote_Access/MPExtended/Developers/API_Documentation/MAS#GetTVEpisodeCount" target="_blank">http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/17_Extensions/Remote_Access/MPExtended/Developers/API_Documentation/MAS#GetTVEpisodeCount</a></p><p>I need to get all episodes from a season.</p><p></p><p>If I take a look into the DB -> M_MEDIAITEM I can see a Mediaitem for the Series, each Season and each episode.</p><p>But there are two questions:</p><p>1) How are they linked together?</p><p>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.</p><p></p><p>But this feels like a really dirty hack to me. Any suggestions?</p><p></p><p>Looking at the client Side SeriesFilterBySeasonScreenData.cs I found this:</p><p>[CODE=C#]// subViewSpecification contains "Series S01" pattern, here we only want to show the season number.</p><p> string season = subViewSpecification.ViewDisplayName ?? string.Empty;</p><p> season = season.Substring(season.LastIndexOf("S") + 1);</p><p> return LocalizationHelper.Translate(_navbarSubViewNavigationDisplayLabel, season);[/CODE]</p><p></p><p>I guess this is pretty much option 2</p></blockquote><p></p>
[QUOTE="FreakyJ, post: 1154820, member: 106003"] [USER=48495]@morpheus_xx[/USER] I need your help again :( I am working on a MAS implementation for MP2 adn for [URL]http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/17_Extensions/Remote_Access/MPExtended/Developers/API_Documentation/MAS#GetTVEpisodeCount[/URL] 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=C#]// 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);[/CODE] I guess this is pretty much option 2 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Get every episode from a Season
Contact us
RSS
Top
Bottom