- Thread starter
- Admin
- #21
@Lehmden @Helios61
That means a star rating for audio not available from metadata currently, right?
That means a star rating for audio not available from metadata currently, right?
OKI will give you a call once this starts, ok?
Is it possible to get by code the number of saisons of one series?
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...I have to count the number of un-/watched episodes per series. Any idea how to do that?
Thanks. Unfortunately something like this is not possible in xamlI'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.
Yes, it's like that. But if you don't know what to bind it doesn't helpIsn't this a job for the data.binding layer? But I don't understand those things. I can imagine this is something that has to be done nevertheless in future...
<Label x:Name="Artists" Grid.Row="0" Grid.Column="1"
Content="{Binding Artists}" Color="{ThemeResource TextColor}"/>
This probably is where a Dev needs to jump in...But if you don't know what to bind it doesn't help
You need to use the https://github.com/MediaPortal/Medi...els/AspectWrappers/AudioAspectWrapper.cs#L248, bind the selected MediaItem to it. Inside the control you then can use {Binding Artists} as quoted above.E.g. I do also not know how to bind the AlbumArtist. Changing "binding Artists" to "binding AlbumArtists" does not work ... Same for bitrate etc.