Page 1 of 1

Music files in folders via PS3/Twonky appear in alphabetical

Posted: Sat Jul 10, 2010 1:19 am
by tweezer
that's right, when I go to play an alblum from a folder in Twonky *using my PS3 as the media server), the music files (mp3) show up in alphabetical order, not in track order (as they should or would in iTunes).
:mrgreen:
Anyone else have this problem? or am i just an idiot!
Any help would be greatly appreciated!

Thanks

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Sat Jul 10, 2010 9:44 am
by PeeBee
Let me know which version of TMS you're running and I'll check on my PS3 from my server running TMS 6.0-RC3.

PB

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Sat Jul 10, 2010 4:13 pm
by tweezer
Hey PB - i've got 5.1.5 TMS running.
Thanks for looking in to yours!

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Sun Jul 11, 2010 5:14 pm
by PeeBee
I had a brief look yesterday and all seemed OK but I'll have another look when I can get my son off of COD:MW2!

Also, what views are you using? What do you have set up on the First Steps page and against the PS3 entry on the Media Receivers page? And has your PS3 been recognised as a PS3 on the Media Receivers page?

Regards

PB

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Sun Jul 11, 2010 8:26 pm
by PeeBee
Just checked and my PS3 does the same in the By Folder view, but so does my Samsung TV so it is not specific to the PS3. It also puts them in alphabetical track title order when viewing them in the HTML and Flash browsers.

I will have to look at the By Folder view file and see how it is set to work.

PB

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Sun Jul 11, 2010 11:13 pm
by PeeBee
I am using Advanced Navigation and then choosing the By Folder option - I have now modified the view-definitions.xml file to get the right behaviour. If you are using the basic By Folder option from the drop-downs on the Media Receivers page then I'm not sure this will work as I'm not sure how to modify the folder.view.xml file as it is very basic.

I changed

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>
to

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>
The addition is the sortcriteria='+pv:numberOfThisDisc,+upnp:originalTrackNumber' bit.

After modifying this file you'll need to restart your server (Manintenance - Restart Server). You may need to play with permissions on your NAS to get to change the file.

PB

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Tue Jul 13, 2010 5:30 am
by tweezer
Hey thanks so much for the help here!
First question: i have 5 or more entries in the Media Receivers section. Is this normal? They seem to come and go, depending on which computer/iphone/laptop the TMS is picking up. Do you set the "Enable sharing for new media receivers automatically" to on or off?
re the view-definitions.xml file - pardon me being a dummy --- but what and where is this file? It looks like i will modify it with the code you enter using notepad, yes?

Thanks again for your help

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Tue Jul 13, 2010 8:19 pm
by PeeBee
I set the "Enable sharing for new media receivers automatically" to on. Either way you shouldn't keep seeing receivers coming and going unless your setup is losing the list of receivers each time your PC/NAS starts up. The only difference is whether a new entry gets a tick next to it automatically or you have to do it manually.

Re the view-definitions.xml file - it depends on what you are running Twonky on. On my PC it is in C:\Program Files\TwonkyMedia\resources\views. Under Windows you would be able to edit the xml files using Notepad.

If you are running it on a NAS then it would depend on what NAS you have.

PB

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Tue Jul 13, 2010 8:45 pm
by tweezer
I'm running tms on a qnap TS- 219p nas. do you know where i wound find the *.xml file in that case?

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Mon Jul 19, 2010 8:57 pm
by tweezer
Hey PB - were you able to help me track down the xml file for the QNAP NAS? thanks in advance..

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Tue Jul 20, 2010 8:39 pm
by PeeBee
They are always in the resources/views/ folder under the main twonky installation folder (wherever that is on your qnap). As there isn't an installation file for a qnap on the website I can't check to see where it would be installed to.

PB

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Wed Jul 21, 2010 5:23 am
by tweezer
Great i found the file, but must telnet in to the QNAP device..and use vi editor to modify which i have no clue how to use :/
any suggestions?

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Wed Jul 21, 2010 9:40 am
by LtPidgeon
tweezer wrote:Great i found the file, but must telnet in to the QNAP device..and use vi editor to modify which i have no clue how to use :/
any suggestions?
I would suggest using version 4.4.17 until they have fixed the bugs in the latest 6.x version. You can install this using the QPKG. I had the same issue as yourself and version 4.4.17 works perfectly. Apparently this is not a bug but a change in how the new versions of Twonky work, which is a PITA.

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Wed Jul 21, 2010 8:00 pm
by PeeBee
tweezer wrote:Great i found the file, but must telnet in to the QNAP device..and use vi editor to modify which i have no clue how to use :/
any suggestions?
Use vi filename.xml to open the file.
Press i to enter insert mode.
Edit the file.
Press Escape key
Type :wq to write the file and quit vi.

PB

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Fri Jul 23, 2010 6:24 am
by tweezer
hmmm
the system just beeps at me as i try to scroll up or down in the page. very confusing! lots of "~" everywhere... :/

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Fri Jul 23, 2010 6:38 am
by tweezer
OK, i've managed to pull the .xml file out from the qnap device via ftp and edit the file in notepad. however, there is not the same "<container name='byfolder' id='music/folders' " it said id='video/folders' anyhow, i replaced it with your code lets see what happens!

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Fri Jul 23, 2010 8:48 pm
by PeeBee
You're in the wrong section of the xml file. The first section is music, then pictures then videos - you must be reading the video section.

The byfolder element that I edited is at line 65 in the file if you have word-wrap off.

The video byfolder element is at line 145.

PB

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Sun Jul 25, 2010 7:56 pm
by tweezer
So the roll-back to 4.4.17 worked - all the songs in folders are now by track. woo hoo!
now if i could only figure out how to remove the .5s gap that is introduced in between tracks...very annoying when listening to live recordings! any thoughts from any body?

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Wed Oct 06, 2010 11:45 am
by mcweck
Thank's a lot PeeBee. Now i can use v6.x as i want to use it. Thought i just wasted money for the v6 license...

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Mon Oct 18, 2010 10:05 pm
by Vianos
Thanx a lot from me too.
At last I can play my albums the way I want them.

Greets
Vianos

Re: Music files in folders via PS3/Twonky appear in alphabetical

Posted: Mon Dec 20, 2010 3:09 pm
by Alfman66
All,

Nice hack. Tried it succesfully however when using a AV device like the Denon AVR 3808 it is required to also edit the clients.db file. In my case everytime I accessed the list from the Denon all a folder was sorted alphabetical. Only a TM server restart could fix this. I added XM:IGNORESORT to the Denon settings in clients.db

Alfman

Re: Music files in folders via PS3/Twonky appear in alphabet

Posted: Wed Jan 19, 2011 9:42 am
by mikle_01
Hi,

works great! Thanks a lot..

It's simple; use my Windows 7 PC and mount the "public" folder (example \\192.168.1.1\public), then navigate to \twonkymedia\resources\views and open the view-definitions.xml with notepad++

Here is the changed file wich works 100% http://rapidshare.com/files/443362229/v ... itions.xml

Image

And it works - sort order with ID3 tag and not alphabeticly.

Question: It's possible to delete some sections in the view-definitions.xml I don't want to have (example: Rating, Genre, All Music...)

- Mikle

Re: Music files in folders via PS3/Twonky appear in alphabet

Posted: Sat Apr 16, 2011 2:39 am
by Crashdot
Hi,

I have tried to implement a variety of changes in my xml file, but still the tracks do not display in the correct order on my clients, possibly due to unreliable information in mp3 tags. Is there any way to just sort by filename since my filenames will sort correctly? Specifying to sort by track number does not work here.

I do not wish for Twonky to rearrange my playlists or folders according to tags, I had all of my music arranged correctly already.

Thanks for your consideration

Re: Music files in folders via PS3/Twonky appear in alphabet

Posted: Sun Apr 17, 2011 3:10 pm
by PeeBee
phibertron seems to be the forum's xml file expert so try posting in this thread and see if he can help:

http://www.twonkyforum.com/viewtopic.ph ... 3&start=50

PB

Re: Music files in folders via PS3/Twonky appear in alphabet

Posted: Sat May 14, 2011 9:15 am
by CharlesBrowner
Hey PeeBee,

it works, I've been looking so long for a solution and now I've found it. Thanks for the great help.- :D

Re: Music files in folders via PS3/Twonky appear in alphabet

Posted: Sat Jul 02, 2011 8:57 pm
by Kruge
What was your solution? :?:

Re: Music files in folders via PS3/Twonky appear in alphabet

Posted: Sat Jul 02, 2011 10:31 pm
by CharlesBrowner
[quote="Kruge"]What was your solution? :?:[/quote]

This Thread
http://www.twonkyforum.com/viewtopic.ph ... 3&start=50

Re: Music files in folders via PS3/Twonky appear in alphabet

Posted: Tue Aug 23, 2011 11:31 am
by sibolebe
Hi,
I also still have the problem that my music files are sorted alphabeticaly, when I access "By Folder".

I have tried two different Server versions:
6.0.32 on Windows
5.1.1 on my Linkstation

I also modified the view-definitions.xml as described above. The file on the version 6 already seems to be ok and I didn't make any changes.

On windows I have the following configuration:
- Using Advanced view
- Set the content location to c:\temp for testing
- Under c:\temp I have one directory with the songs of one album
- If I choose the By Folder view the sorting is wrong
- If I choose the Album view the sorting is correct
- I tried different clients: HTML and Flash Browser, XBMC, Panasonic TV

Does anybody have an idea what I am doing wrong?

Regards
Boris

Re: Music files in folders via PS3/Twonky appear in alphabet

Posted: Wed Aug 24, 2011 7:38 am
by sibolebe
Update:
I changed the view-definition.xml and replaced
<container buildon='res' createClass='object.item.audioItem.musicTrack' class='object.container.storageFolder' />

with this code:
<container buildon='res' sortcriteria='+pv:numberOfThisDisc,+upnp:originalTrackNumber' createClass='object.item.audioItem.musicTrack' class='object.container' />

Now the sorting is as expected with the HTML and Flash Browser and in Twonky Manager. On my Panasonic, XBMC and IPhone CLients it's still the same.

It's the same for 5.1 and 6.0. I think I still have to play a little bit with the clients.db

Boris

Re: Music files in folders via PS3/Twonky appear in alphabet

Posted: Wed Aug 24, 2011 5:48 pm
by CharlesBrowner
Hi everybody,

I also have the problem that my music files are sorted alphabeticaly, when I play it with my Revo Axis (http://www.revo.co.uk/digital-radio/revo-axis.php)

Is there also a solution for the Revo Axis?

Many thanks

Re: Music files in folders via PS3/Twonky appear in alphabet

Posted: Thu Aug 25, 2011 6:53 am
by sibolebe
New Update.
I have the correct sorting by track number now working for 6.0 even with my Panasonic TV. I added in clients.db XM:IGNORESORT

Unfortunately it is not working for the 5.1.1 version on my Linkstation. I changed the view-definition.xml an clients.db the same way I did for the 6.0 version. What I realized here is that for all views (Album, Artis, By Folder etc) the sorting is alphabetical on the Panasonic. My IPhone client works correct.

Anybody has an idea how to get the sorting by track number working for 5.1.1?

By now I see only these solutions:
1) Upgrade my NAS to 6.0 -> Thats not really what I wan't to do and I don't realy know if it is working, because I tested 6.0 on Windows.
2) Change the Track names of all songs, so that the track number is part of it -> not a realy good solution, and I don't know how long it will take for 15.000 songs

Any other ideas?

Regards
Boris

Re: Music files in folders via PS3/Twonky appear in alphabet

Posted: Fri Aug 26, 2011 7:10 pm
by Twonky_Rick
Change the Track names of all songs, so that the track number is part of it -> not a realy good solution, and I don't know how long it will take for 15.000 songs
I think Tag & Rename can easily do this.

- Rick

Re: Music files in folders via PS3/Twonky appear in alphabet

Posted: Mon Feb 27, 2012 1:08 am
by BILLH
This thread is quite old and I apologize for re-opening it but I am trying to fix this song playing order from the FOLDERS directory on my WDLIVE 1TB NAS too.

I can successfully FTP to the public directory but I cannot find the TWONKY directory that everyone talks about navigating to in order to change the xml file. I am using the 5.1.9 version of Twonky that came with the WDLIVE and I haven't changed anything. I can get into the WDLIVE UI and I can get into the Twonky configuration (....:9000).

I see all my music, video and audio files as well as all the WD files but there is not directory nor any files for Twonky. I am sure it is there because it is working. I am wondering if WD has somehow hidden the directory or blocked access???

Suggestions?

Thanks.

Re: Music files in folders via PS3/Twonky appear in alphabet

Posted: Mon Feb 27, 2012 4:26 pm
by BILLH
^^^
Bump.

Anybody have any suggestions?

Re: Music files in folders via PS3/Twonky appear in alphabet

Posted: Tue Mar 20, 2012 11:33 pm
by Twonky_Rick
You might want to send a PM to one of the Twonky Gurus about this. You'll see them posting in the main TwonkyServer forum. They know much more about Linux devices than I do.

- Rick