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
Skins and Design
BlueVision
Blue Vision
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="Lehmden" data-source="post: 1123470" data-attributes="member: 109222"><p>Hi.</p><p></p><p></p><p></p><p>I've easily done both in MP2-Edit with a SQL Query, but I'm not sure if this is possible in a MP2 Skin...</p><p></p><p>Here is the query I'm using for Seasons:</p><p> 'SELECT SEASON FROM M_SERIESITEM WHERE SERIESNAME = "SeriesName" ;' (You can also use TVDB-ID instead of SeriesName, but at the Time I do this query it's possible that some episodes did not have propper filled TVDB-ID filed. DId not know if this is fixed by the patch Realkane has done to the series MDE lately, as I didn't noticed this issue after applying the fix.</p><p>Then you need to make the result unique as it will deliver an season entry for every episode in the DB. </p><p></p><p>Playcount is a bit more tricky as you need to "INNER JOIN" tables for this query.</p><p>'SELECT PLAYCOUNT FROM M_MEDIAITEM INNER JOIN M_SERIESITEM ON M_MEDIAITEM.MEDIA_ITEM_ID = M_SERIESITEM.MEDIA_ITEM_ID Where M_SERIESITEM.SERIESNAME = "SeriesName" ;'</p><p></p><p>Did not know if this helps.</p></blockquote><p></p>
[QUOTE="Lehmden, post: 1123470, member: 109222"] Hi. I've easily done both in MP2-Edit with a SQL Query, but I'm not sure if this is possible in a MP2 Skin... Here is the query I'm using for Seasons: 'SELECT SEASON FROM M_SERIESITEM WHERE SERIESNAME = "SeriesName" ;' (You can also use TVDB-ID instead of SeriesName, but at the Time I do this query it's possible that some episodes did not have propper filled TVDB-ID filed. DId not know if this is fixed by the patch Realkane has done to the series MDE lately, as I didn't noticed this issue after applying the fix. Then you need to make the result unique as it will deliver an season entry for every episode in the DB. Playcount is a bit more tricky as you need to "INNER JOIN" tables for this query. 'SELECT PLAYCOUNT FROM M_MEDIAITEM INNER JOIN M_SERIESITEM ON M_MEDIAITEM.MEDIA_ITEM_ID = M_SERIESITEM.MEDIA_ITEM_ID Where M_SERIESITEM.SERIESNAME = "SeriesName" ;' Did not know if this helps. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
Top
Bottom