Twonkymedia 6.0.38: file sort order

TwonkyMedia, PS3, XBOX360, iTunes, & other media players

Twonkymedia 6.0.38: file sort order

Postby petrip » Sat Feb 18, 2012 2:18 am

Twonkymedia 6.0.38 is still sorting audiofiles alphabetically - this is clearly a bug. It would be better to sort mp3/flac-files etc. by filename and/or id3 tracknumber.

It is very frustrating and almost impossible to listen whole albums when order is totally wrong.

FIX IT PLEASE!
petrip
New here
 
Posts: 3
Joined: Wed Oct 12, 2011 5:25 pm
NAS Model: TS-119P+

Re: Twonkymedia 6.0.38: file sort order

Postby jamfx » Mon Feb 20, 2012 1:21 am

Hi,

this Bug has been in Twonky long time. It's not directly QNAPs foult. It's more a twonky problem.

My solution was WITH EARLIER VERSIONS as follows:
Like here: http://forum.qnapclub.de/viewtopic.php? ... 59#p104162

You look for: /mnt/ext/opt/twonkymedia/ressources/views/view-definitions.xml with this code:

Code: Select all
<container name='byfolder' id='music/folders' class='object.container.storageFolder' createClass='object.item.audioItem.musicTrack'>
            <container buildon='res' createClass='object.item.audioItem.musicTrack' class='object.container.storageFolder' />
         </container>


If you find it replace it with 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>


You can do this and your MUSIC will be sorted nicely. BUT!!! You can not index any videos or pictures any more. I don't know why, as I thought, that with changing this file, only output should be modified, but, as I wrote. No more indexing of Videos and Pictures.

If someone could have a look at this, it would be great!
THanks
JamFX
jamfx
First post
 
Posts: 1
Joined: Mon Feb 20, 2012 1:12 am
NAS Model: TS-212

Re: Twonkymedia 6.0.38: file sort order

Postby Briain » Mon Feb 20, 2012 6:23 am

Hi

I've not tested to see if this is causing your problem, but it looks like you're missing a ' after the originalTrackNumber term; it should be as below:

sortcriteria='+pv:numberOfThisDisc,+upnp:originalTrackNumber'

It's very possible that by missing that part out, the containers below it will not function as expected (or at all).

Hope that helps
Bri

PS See here for a similar my answer to a similar question about sort order (and why it's the way it is), and also here for links to more information about four custom tree packs I've created. I've added both the disk sort and track sort orders to the folder views in all of my custom tree packs, so these might be of interest either as a complete replacement tree option, or just for lifting sections from it (i.e. containers) to use when building your own trees. There's also a link to instructions (with screen shots) on how to add the custom tree packs to the QPKG version of Twonky (and thus it also shows where the existing ones reside on a Qnap).
User avatar
Briain
Been there, done that
 
Posts: 762
Joined: Tue Apr 20, 2010 11:56 pm
Location: Edinburgh (Scotland)
NAS Model: TS-459 Pro


Return to Media Streaming

Who is online

Users browsing this forum: No registered users and 2 guests