Sorting My Music folder (3 Viewers)

sleepycol

Portal Pro
June 2, 2006
540
39
Home Country
United Kingdom United Kingdom
Hi Koudijs,

Can you tell me which code I need to edit to implement this? Or is it very complicted? I would like this change as soon as possible :0)

Many thanks,
Colin
 

Koudijs

Retired Team Member
  • Premium Supporter
  • January 4, 2007
    132
    3
    50
    Home Country
    Netherlands Netherlands
    If you want to try my change (fixed view/sort relation) you need to extract the zipped dll into the MediaPortal\Plugins\Windows directory. This dll must be used in combination with the latest SVN (13505).

    To see the effect of it you have to configure the views and sort strings in the setup program. I have set them up like this:

    Music Views
    Artists: artist - album - track (three separate rows)
    Songs: title (one row)

    Music Sort
    Track: [%track%. ][%title%] [%duration]
    Title: [%title% - ][%artist%] [%duration]

    The result of this is that when you select an album in the 'Artists' view you get the tracks by track number and title. When you select the 'Songs' view you get the songs by title and artist. See also the screenshots in one of my previous posts.

    Please let me know what you think of it.


    Regards,
    Jan
     

    sleepycol

    Portal Pro
    June 2, 2006
    540
    39
    Home Country
    United Kingdom United Kingdom
    Hi,

    Many thanks for the file. I have downloaded the latest SVN (13512) and installed it before renaming existing windowsplugins.dll to .bak, then extracting the file you attached into that directory. Made the changes to MP setup as you suggested (most of it I had aready done in my attempts to get this to work!). The sorting works fine. However, I cannot manually re-sort from within MP anymore. The "sort by" option is greyed out and cannot be highlighted in order to change sort method. Whilst I appreciate that everything is now sorted as I want, it is often handy to still be able to manually sort things, perhaps when someone else is using MP for example. Is there any way to have the default sorts exactly as you have them, but maintain ability to change the sort mehtod from within MP whilst browsing as was originally the case? Or is this just because I'm using even newer SVN?

    Many thanks for your help!!!


    Cheers,
    Colin
     

    Koudijs

    Retired Team Member
  • Premium Supporter
  • January 4, 2007
    132
    3
    50
    Home Country
    Netherlands Netherlands
    Hi Colin,

    Nice to hear that the automatic sorting is also working for you.

    The 'Sort by' button is disabled by design. I tried to explain the reason for it in one of my previous posts. The problem I'm having with it is that if you change the sort method of for example the first level of the artists view this sort method is also used for the first level of all other database views. This behavior can be changed but if more time needs to be spent on it the sort method should be made configurable in the Music Views table in configuration.exe. Maybe something I will try in the near future..., I will keep you informed.

    The reported SVN version is the one that is used for the build of the dll, it should work with newer versions as well.

    Regards,
    Jan
     

    sleepycol

    Portal Pro
    June 2, 2006
    540
    39
    Home Country
    United Kingdom United Kingdom
    Hi,

    Its a real shame the "sort by" is disabled. Unfortunately I will have to return to the standard .dll so that I can still change the sort by in MP, for example its sometimes necessary to be able to sort by date etc. I'm amazed there is no easy option to change this already, I mean its very important when browsing music files to be able to set a default sort but then also change that if the user wants to whilst browsing within MP. I know absolutely nothing about programming, so I can't really appreciate how hard this is to implement. I really hope this is a priority for the next music SVN updates. For me its a really important requirement of a music database. So its strange this has not been addressed already.

    Many thanks for your efforts!!! Its nearly there :0)

    Cheers,
    Colin
     

    Koudijs

    Retired Team Member
  • Premium Supporter
  • January 4, 2007
    132
    3
    50
    Home Country
    Netherlands Netherlands
    It seems that temporarily changing the sort method is more important for you than I initially thought. At least I now know that more users are interested in an improved sort implementation :)

    I will give it a second try and see if I can make the sort method configurable in configuration.exe. This setting will than be the default when you start MP and it can be temporarily overruled (till you exit MP) via the 'Sort by' button.

    This can take some time so don't hold your breath...

    Jan
     

    sleepycol

    Portal Pro
    June 2, 2006
    540
    39
    Home Country
    United Kingdom United Kingdom
    Hi,

    That sounds like it would be perfect! I would really appreciate that improvement.

    The sooner the better ;0)


    Cheers,
    Colin
     

    Koudijs

    Retired Team Member
  • Premium Supporter
  • January 4, 2007
    132
    3
    50
    Home Country
    Netherlands Netherlands
    Starting from svn buid 13735 it is possible to configure the default sort method in configuration.exe. There is an additional column in the views table in which it can be specified (see screenshot). This default can be overruled within MediaPortal via the 'Sort by' button, this is effective till MP is closed.

    This change is implemented for both the music and movie views.


    Regards,
    Jan
     

    idioteque

    Retired Team Member
  • Premium Supporter
  • September 29, 2005
    609
    9
    Home Country
    Netherlands Netherlands
    why is there no sorting by year and could all DB fiels be used for sorting ?
     

    sleepycol

    Portal Pro
    June 2, 2006
    540
    39
    Home Country
    United Kingdom United Kingdom
    Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you

    This is perfect! Thanks so much for your hard work. I can now enjoy music browsing EXACTLY as i would like........

    Cheers,
    Colin
     

    Users who are viewing this thread

    Similar threads

    Good to hear you got it working.(y) I have attached a screenshot of my Power Scheduler settings and, yes my TV does stay off when a scheduled recording starts. Regarding the monitor sleeping when playing music, if the screensaver option is set in your MP skin settings try disabling it, I have a vague recollection it may get...
    Good to hear you got it working.(y) I have attached a screenshot of my Power Scheduler settings and, yes my TV does stay off when...
    Hi, everytime my computer awakes for scheduled recordings, the monitor awake too and does not switch of during the whole recording...
    Replies
    5
    Views
    394
    First thing to say is that I use MP1, whereas I believe that you use MP2. @ge2301 has just posted that MP2 has a "folder view" in addition to the "library view", so you should be able to set up your system as I describe below, but the details will differ. In MP1, the folders that are to appear on the "Videos" panel are defined in "MP...
    First thing to say is that I use MP1, whereas I believe that you use MP2. @ge2301 has just posted that MP2 has a "folder view" in...
    Help Please. Yesterday upon switch-on, I had this issue with MP2: When I clicked on the [REC] icon in the following Image...
    Replies
    18
    Views
    1K
    According to Wikipedia, Windows only uses code pages other than UTF-8 to support legacy (mostly 32 bit) applications and supports two code pages in addition to UTF-8 (OEM and ANSI). According to Microsoft, UTF-8 has been the preferred character set since 2019. If TV Server (or its import routine) were using UTF-8, then umlauts...
    According to Wikipedia, Windows only uses code pages other than UTF-8 to support legacy (mostly 32 bit) applications and supports...
    Because I have around 200 TV channels and more than a dozen groups, I tried to import the TV channel groups from an old export.xml...
    Replies
    4
    Views
    179
    Result, it works on the two PC's we use for watching TV :D I've not lost anything by the looks of it either, all channels etc still setup. Just my office PC won't connect, which I only use for testing things anyway (I tried updating that this morning as well), but I'll uninstall and install fresh on that. PS. Exported all settings...
    Result, it works on the two PC's we use for watching TV :D I've not lost anything by the looks of it either, all channels etc still...
    I tried to install MP 1.35 this morning, but I couldn't get any further with the installation on the TV server, see error message...
    Replies
    13
    Views
    1K
    I eventually came across the TwinHan driver CD that was included with the original product. The CD contains numerous drivers for the different TwinHan tuner models, but the drivers are for Win 2K (32-bit only) and Win XP (32-bit and 64-bit). The drivers install directly on Vista, and the drivers can be installed on Win 7 and Win 10...
    I eventually came across the TwinHan driver CD that was included with the original product. The CD contains numerous drivers for...
    Hi, went from a 1.29 install (working, reinstalled for other reasons) on a fairly fresh and fully updated Windows 10 system for a...
    Replies
    24
    Views
    3K
    Top Bottom