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 1
Development
General Development (no feature request here!)
working on: filter in music views reloaded
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="JulianBuss" data-source="post: 69056" data-attributes="member: 10499"><p>I want to inform the community that I' working on the following: </p><p></p><p>As written in earlier posts I'm not satisfied with the filtering possibilities in music views: one can create custom views and create a filter for a view level, but the filtered level remains visisble.</p><p></p><p>Use case: I have music tagged with genres like "Pop slow", "Pop fast", "Pop party", "Pop rock", "Pop live" and so on. </p><p>No I want to have a view showing all pop songs, that means everything having the word "Pop" in it's genre. </p><p></p><p>Currently I can create a custom view with a first level showing "genre" and with thea filter "like %Pop%". But when using the view, it shows me "Pop slow", "Pop fast" etc. first instead of the albums, artist or whatever. </p><p></p><p>In Meedio there is the possibility to create a filter for an entire view, not only for a specific view level. </p><p></p><p>MP does not have that, so I started to implement it. </p><p></p><p>While digging around I found that in MusicViewHandler.cs there is different SQL used for album, genre, artist and other views. For example, the artist view only uses the artist table of the database, the album view uses a join of artist and album view. </p><p></p><p>So when I want to filter that by genre, it's not possible because the gerne information is not present in that situation. </p><p></p><p>After some thinking I decided to create a new, standard virtual SQL table used by *all* music views. This virtual table is the result of the inner join of the artist, album, genre, song and path tables. Because I only use certain columns (and not all colums) it's quite fast. </p><p></p><p>Depending on the view type (album, artist, genre...) this virtual table is grouped by some criteria, for example by album name. </p><p></p><p>Advantage: we have only one basic SQL statement for all view types, and that SQL is just complemented by a "group by" and "order by" clause, depending on the view we want to display.</p><p></p><p>That saves some lines of code and makes it easier to read. </p><p></p><p>AND: with that we have the chance to create any custom filter in any view. For example, I can add a filter by genre in the album, artist or any other view, just by extending the "where" clause. </p><p></p><p>I have to do some more tests and I have to check how to add a GUI element for entering a filter.</p><p></p><p>Because this modification might have some impact on other things, I have to coordinate it with SteveV, who is on vacation at the moment. So it might take some days before I can finish this modification and submit it as patch.</p></blockquote><p></p>
[QUOTE="JulianBuss, post: 69056, member: 10499"] I want to inform the community that I' working on the following: As written in earlier posts I'm not satisfied with the filtering possibilities in music views: one can create custom views and create a filter for a view level, but the filtered level remains visisble. Use case: I have music tagged with genres like "Pop slow", "Pop fast", "Pop party", "Pop rock", "Pop live" and so on. No I want to have a view showing all pop songs, that means everything having the word "Pop" in it's genre. Currently I can create a custom view with a first level showing "genre" and with thea filter "like %Pop%". But when using the view, it shows me "Pop slow", "Pop fast" etc. first instead of the albums, artist or whatever. In Meedio there is the possibility to create a filter for an entire view, not only for a specific view level. MP does not have that, so I started to implement it. While digging around I found that in MusicViewHandler.cs there is different SQL used for album, genre, artist and other views. For example, the artist view only uses the artist table of the database, the album view uses a join of artist and album view. So when I want to filter that by genre, it's not possible because the gerne information is not present in that situation. After some thinking I decided to create a new, standard virtual SQL table used by *all* music views. This virtual table is the result of the inner join of the artist, album, genre, song and path tables. Because I only use certain columns (and not all colums) it's quite fast. Depending on the view type (album, artist, genre...) this virtual table is grouped by some criteria, for example by album name. Advantage: we have only one basic SQL statement for all view types, and that SQL is just complemented by a "group by" and "order by" clause, depending on the view we want to display. That saves some lines of code and makes it easier to read. AND: with that we have the chance to create any custom filter in any view. For example, I can add a filter by genre in the album, artist or any other view, just by extending the "where" clause. I have to do some more tests and I have to check how to add a GUI element for entering a filter. Because this modification might have some impact on other things, I have to coordinate it with SteveV, who is on vacation at the moment. So it might take some days before I can finish this modification and submit it as patch. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
working on: filter in music views reloaded
Contact us
RSS
Top
Bottom