Page 1 of 1

Folder View: Missing leading digits of music filenames

Posted: Sun Mar 06, 2011 8:56 pm
by Kawabiker
Hi all,

I organized most parts of my MP3 music in a folder structure (this is helpful for playing the music on my car stereo).

MP3 files in a folder are named like:
01 Vogue - Madonna.mp3
02 No Money 2 Live - Michael -Bully- Herbig.mp3
03 Move Me No Mountain (Album Edit) - Soul II Soul.mp3
...

When I use "Folder view" on a UPnP-Client ( TwonkyServer -> Music -> Folder), the MP3-Files are listed in alphabetical order by title, like:
Move Me No Mountain
No Money 2 Live
Vogue
...

Thus, files are played in wrong order.
I suppose files are sorted by the ID3-tagged titles rather than by filename.

How can i acheive a sorting either by filename or by the ID3-track tag in the 'folder' - view ?

Regards

Martin

Re: Folder View: Missing leading digits of music filenames

Posted: Sun Mar 06, 2011 10:14 pm
by phibertron
In the view-definitions.xml

Look for this section <container name='byfolder' id='music/folders'

And add this to it sortcriteria='+pv:numberOfThisDisc,+upnp:originalTrackNumber'

So that the whole thing looks like this

Code: Select all

<container name='byfolder' 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>

Re: Folder View: Missing leading digits of music filenames

Posted: Sun Mar 06, 2011 10:19 pm
by Kawabiker
wow... thanks a lot for that fast reply! :D

i'll try this soon :)

~Martin

Re: Folder View: Missing leading digits of music filenames

Posted: Sun Mar 06, 2011 10:32 pm
by phibertron
Timing is everything LOL