Folder View: Missing leading digits of music filenames

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
Kawabiker
Posts:2
Joined:Sun Mar 06, 2011 8:28 pm
AV Hardware:--> Server ----------------------------------------
Win XP Prof running Twonky Server 6.0
QNAP NAS running Twonky Server 6.0.30
--> Clients ----------------------------------------
Kathrein UFS -922 / UFS-912 HDTV Sat Receivers
iPhone running AirPlayer
Poppstar MS 35 Media Client
Folder View: Missing leading digits of music filenames

Post by Kawabiker » Sun Mar 06, 2011 8:56 pm

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

User avatar
phibertron
Posts:1566
Joined:Sun Jan 30, 2011 5:52 pm
AV Hardware:Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Folder View: Missing leading digits of music filenames

Post by phibertron » Sun Mar 06, 2011 10:14 pm

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>
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

Kawabiker
Posts:2
Joined:Sun Mar 06, 2011 8:28 pm
AV Hardware:--> Server ----------------------------------------
Win XP Prof running Twonky Server 6.0
QNAP NAS running Twonky Server 6.0.30
--> Clients ----------------------------------------
Kathrein UFS -922 / UFS-912 HDTV Sat Receivers
iPhone running AirPlayer
Poppstar MS 35 Media Client

Re: Folder View: Missing leading digits of music filenames

Post by Kawabiker » Sun Mar 06, 2011 10:19 pm

wow... thanks a lot for that fast reply! :D

i'll try this soon :)

~Martin

User avatar
phibertron
Posts:1566
Joined:Sun Jan 30, 2011 5:52 pm
AV Hardware:Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Folder View: Missing leading digits of music filenames

Post by phibertron » Sun Mar 06, 2011 10:32 pm

Timing is everything LOL
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

Locked