working on: filter in music views reloaded (2 Viewers)

Lyxalig

MP Donator
  • Premium Supporter
  • January 30, 2005
    276
    1
    40
    Norway
    Home Country
    Norway Norway
    To refrase the horrible last-post :lol: :

    Will I be able to make a simple sql-statement that filters down to the songs I would like to get viewed BEFORE the current logic?

    Ex: Album- SingleArtist view
    Code:
    SELECT album.idAlbum,album.strAlbum,artist.idArtist,artist.strArtist,song.idSong,
    song.strTitle,genre.idGenre,genre.strGenre,song.iTrack,song.iDuration,
    song.iYear,song.iTimesPlayed,song.iRating,song.favorite,path.strPath,
    song.strFileName 
    
    FROM
    song,album,artist,genre,path
    
    WHERE
    song.idAlbum = album.idAlbum and song.idArtist = artist.idArtist and song.idGenre = genre.idGenre and song.idPath = path.idPath
    
    (here starts MY sql)
    AND album.inumArtists == 1
    AND idArtist IN
       (SELECT idArtist
       FROM song
       GROUP BY idArtist
       HAVING COUNT(*) >=7)) 
    (here stops MY sql)
    
    GROUP BY 
    "something" 
    
    ORDER BY 
    "something"

    EDIT:
    ---BAHH--- You got it the first time.. BTW: This feature would be awsome.
    Would there be a good idea to store views seperately so that they could be shared?? Maybe put as an xml-file in a seperate folder. this way users could create POWER-views and share them.


    AND almost forgot RESPECT.. :D
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    Did you notice any speedups due to your work?

    Especially MP's handling of maaany files needs some improvement..
     

    Lyxalig

    MP Donator
  • Premium Supporter
  • January 30, 2005
    276
    1
    40
    Norway
    Home Country
    Norway Norway
    Please answer this guy

    There must be someone that know the answer to JulianBuss question?
    This would be great addition to MP. Please continue your work
     

    JulianBuss

    Portal Pro
    November 14, 2004
    136
    2
    thanks rtv - I'm going on vacation for about two weeks starting tomorrow. Shall I create a patch with the code I have, or is it better to wait until someone implemented the filter text field in the configuration program?
     

    Users who are viewing this thread

    Top Bottom