Page 1 of 1
Sorting MP3s in the folder-structure
Posted: Fri Apr 10, 2009 9:28 am
by mischemann
I'm very happy to use Twonky.

and it works perfect with my
T&A MusicPlayer E-series and also with my new SONY Z4500 TV.
One "little" question:
I use for my MP3s the normal folder/file-structure to find my songs. (30000 songs and 35000 fotos) I create my own tree structure.
It works but the problem is in every last folder: The songs are not played in the correct order (filename).
They are played in order of the name from the ID3 tag.
What's wrong ?
Kind regards, Olaf
Serverversion : 5.0.61
Re: Sorting MP3s in the folder-structure
Posted: Thu Dec 31, 2009 4:41 pm
by sonicstorm
I have the same issue. It appears that most categories sort by Track Number, but when you switch to Folder view, the tracks are sorted alphabetically. This is very annoying because if you are listening to an album, all of the tracks are played in the incorrect order. Because of the number of files in my database, I have to use the Folder view in order to get to files quickly; otherwise, it will take me 20 minutes to scroll down a standard Twonky list to find the artist/album that I want. My Folder structure is similar to the Artist Index sorting, but it is more refined. Instead of grouping ABC, DEF, GHI, etc. as in the Artist Index, it is broken down like A, B, C, D, E, F, G, H, I...
If Twonky could create an artist index that was alphabetical and/or fix the sort order in the Folder view, that would be AWESOME!
Here is my server info:
TwonkyMedia version: 5.1.2
Server hardware: Dell Desktop
Operating System: Windows Server 2003
If you are running as a system service (Windows only): No
Client(s) and their software version: Sony PS3 & Sony Bravia W5100 Series TV
Type(s) of media you are having problems with: Music
How many files you have in your database: 168,179
Network type (Wired/Wireless): Wired and Wireless
Re: Sorting MP3s in the folder-structure
Posted: Mon Jan 04, 2010 8:46 pm
by john.glasson
Looking at the 'view-definitions.xml' file, it is missing any sort criteria for 'Folders'. This seems to have been the case for most if not all of the 5.1.x releases.
If you amend this section to :
<container name='folder' id='music/folders' class='object.container.storageFolder' createClass='object.item.audioItem.musicTrack'>
<container buildon='res' sortcriteria='+pv:numberOfThisDisc,+upnp:originalTrackNumber' createClass='object.item.audioItem.musicTrack' class='object.container.storageFolder' />
</container>
...it then works ok.
Re: Sorting MP3s in the folder-structure
Posted: Sun Jan 24, 2010 3:59 pm
by psychiktv
Hi,
I tried to modify the file as you said on my Qnap Nas, it dind't work ...
Re: Sorting MP3s in the folder-structure
Posted: Sun Jan 24, 2010 8:18 pm
by gsacstejas
The patch worked on my Acer Aspire easyStore H340
Re: Sorting MP3s in the folder-structure
Posted: Mon Feb 15, 2010 5:25 pm
by user38861
Thanks, the patch works with Twonky Linux Server 5.1.2
ALSO, I have altered the "view-definitions.xml" file (in /usr/local/twonkymedia/resources/views under Linux)
so that " upnp:artist[3] " is changed to " upnp:artist[1] "
This gives a list of individual letters for the Artist Index (after a server restart!!)
Re: Sorting MP3s in the folder-structure
Posted: Wed Mar 03, 2010 12:34 am
by sonicstorm
Thanks for all of the input everyone! I managed to get a hold of a document describing the syntax for the XML, and I had made those changes to the files as well and can confirm that they all work property!
Thanks again for all your help.