Music files in folders via PS3/Twonky appear in alphabetical

Discuss Twonky and PS3 here
Post Reply
tweezer
Posts:9
Joined:Sat Jul 10, 2010 1:14 am
AV Hardware:playstation 3, QNAP TS-219P
Music files in folders via PS3/Twonky appear in alphabetical

Post by tweezer » Sat Jul 10, 2010 1:19 am

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

PeeBee
Posts:392
Joined:Sat Jun 13, 2009 12:16 pm
AV Hardware:Buffalo LS Pro; PS3; Samsung LE37B650

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

Post by PeeBee » Sat Jul 10, 2010 9:44 am

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
Samsung LE37B650T2WXXU; Liteon 5055GDL+ HDD/DVD Recorder; Playstation 3; Iomega Screenplay HD 500GB; Buffalo Linkstation Pro LS-320GL (running Twonky 6.0.30, SqueezeBox Server 7.6 and acting as a Print Server)

tweezer
Posts:9
Joined:Sat Jul 10, 2010 1:14 am
AV Hardware:playstation 3, QNAP TS-219P

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

Post by tweezer » Sat Jul 10, 2010 4:13 pm

Hey PB - i've got 5.1.5 TMS running.
Thanks for looking in to yours!

PeeBee
Posts:392
Joined:Sat Jun 13, 2009 12:16 pm
AV Hardware:Buffalo LS Pro; PS3; Samsung LE37B650

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

Post by PeeBee » Sun Jul 11, 2010 5:14 pm

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
Samsung LE37B650T2WXXU; Liteon 5055GDL+ HDD/DVD Recorder; Playstation 3; Iomega Screenplay HD 500GB; Buffalo Linkstation Pro LS-320GL (running Twonky 6.0.30, SqueezeBox Server 7.6 and acting as a Print Server)

PeeBee
Posts:392
Joined:Sat Jun 13, 2009 12:16 pm
AV Hardware:Buffalo LS Pro; PS3; Samsung LE37B650

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

Post by PeeBee » Sun Jul 11, 2010 8:26 pm

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
Samsung LE37B650T2WXXU; Liteon 5055GDL+ HDD/DVD Recorder; Playstation 3; Iomega Screenplay HD 500GB; Buffalo Linkstation Pro LS-320GL (running Twonky 6.0.30, SqueezeBox Server 7.6 and acting as a Print Server)

PeeBee
Posts:392
Joined:Sat Jun 13, 2009 12:16 pm
AV Hardware:Buffalo LS Pro; PS3; Samsung LE37B650

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

Post by PeeBee » Sun Jul 11, 2010 11:13 pm

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
Samsung LE37B650T2WXXU; Liteon 5055GDL+ HDD/DVD Recorder; Playstation 3; Iomega Screenplay HD 500GB; Buffalo Linkstation Pro LS-320GL (running Twonky 6.0.30, SqueezeBox Server 7.6 and acting as a Print Server)

tweezer
Posts:9
Joined:Sat Jul 10, 2010 1:14 am
AV Hardware:playstation 3, QNAP TS-219P

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

Post by tweezer » Tue Jul 13, 2010 5:30 am

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

PeeBee
Posts:392
Joined:Sat Jun 13, 2009 12:16 pm
AV Hardware:Buffalo LS Pro; PS3; Samsung LE37B650

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

Post by PeeBee » Tue Jul 13, 2010 8:19 pm

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
Samsung LE37B650T2WXXU; Liteon 5055GDL+ HDD/DVD Recorder; Playstation 3; Iomega Screenplay HD 500GB; Buffalo Linkstation Pro LS-320GL (running Twonky 6.0.30, SqueezeBox Server 7.6 and acting as a Print Server)

tweezer
Posts:9
Joined:Sat Jul 10, 2010 1:14 am
AV Hardware:playstation 3, QNAP TS-219P

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

Post by tweezer » Tue Jul 13, 2010 8:45 pm

I'm running tms on a qnap TS- 219p nas. do you know where i wound find the *.xml file in that case?

tweezer
Posts:9
Joined:Sat Jul 10, 2010 1:14 am
AV Hardware:playstation 3, QNAP TS-219P

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

Post by tweezer » Mon Jul 19, 2010 8:57 pm

Hey PB - were you able to help me track down the xml file for the QNAP NAS? thanks in advance..

PeeBee
Posts:392
Joined:Sat Jun 13, 2009 12:16 pm
AV Hardware:Buffalo LS Pro; PS3; Samsung LE37B650

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

Post by PeeBee » Tue Jul 20, 2010 8:39 pm

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
Samsung LE37B650T2WXXU; Liteon 5055GDL+ HDD/DVD Recorder; Playstation 3; Iomega Screenplay HD 500GB; Buffalo Linkstation Pro LS-320GL (running Twonky 6.0.30, SqueezeBox Server 7.6 and acting as a Print Server)

tweezer
Posts:9
Joined:Sat Jul 10, 2010 1:14 am
AV Hardware:playstation 3, QNAP TS-219P

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

Post by tweezer » Wed Jul 21, 2010 5:23 am

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?

LtPidgeon
Posts:10
Joined:Wed Jun 23, 2010 9:47 am
AV Hardware:QNAP TS 209 Pro II, Linn Majik DS, iPod Touch with Konductor, Sony PS3, XBox 360

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

Post by LtPidgeon » Wed Jul 21, 2010 9:40 am

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.

PeeBee
Posts:392
Joined:Sat Jun 13, 2009 12:16 pm
AV Hardware:Buffalo LS Pro; PS3; Samsung LE37B650

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

Post by PeeBee » Wed Jul 21, 2010 8:00 pm

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
Samsung LE37B650T2WXXU; Liteon 5055GDL+ HDD/DVD Recorder; Playstation 3; Iomega Screenplay HD 500GB; Buffalo Linkstation Pro LS-320GL (running Twonky 6.0.30, SqueezeBox Server 7.6 and acting as a Print Server)

tweezer
Posts:9
Joined:Sat Jul 10, 2010 1:14 am
AV Hardware:playstation 3, QNAP TS-219P

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

Post by tweezer » Fri Jul 23, 2010 6:24 am

hmmm
the system just beeps at me as i try to scroll up or down in the page. very confusing! lots of "~" everywhere... :/

tweezer
Posts:9
Joined:Sat Jul 10, 2010 1:14 am
AV Hardware:playstation 3, QNAP TS-219P

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

Post by tweezer » Fri Jul 23, 2010 6:38 am

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!

PeeBee
Posts:392
Joined:Sat Jun 13, 2009 12:16 pm
AV Hardware:Buffalo LS Pro; PS3; Samsung LE37B650

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

Post by PeeBee » Fri Jul 23, 2010 8:48 pm

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
Samsung LE37B650T2WXXU; Liteon 5055GDL+ HDD/DVD Recorder; Playstation 3; Iomega Screenplay HD 500GB; Buffalo Linkstation Pro LS-320GL (running Twonky 6.0.30, SqueezeBox Server 7.6 and acting as a Print Server)

tweezer
Posts:9
Joined:Sat Jul 10, 2010 1:14 am
AV Hardware:playstation 3, QNAP TS-219P

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

Post by tweezer » Sun Jul 25, 2010 7:56 pm

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?

mcweck
Posts:4
Joined:Wed Oct 06, 2010 10:15 am
AV Hardware:Twonky Server Version: v6.0.34
Server: ReadyNAS Duo (RAIDiator 4.1.8 [1.00a043])
NOXON iRadio Cube
NOXON iRadio 300
Panasonic TX-L 37 EW 30 S
Contact:

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

Post by mcweck » Wed Oct 06, 2010 11:45 am

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

Vianos
Posts:1
Joined:Mon Oct 18, 2010 10:02 pm
AV Hardware:NOXON Radio

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

Post by Vianos » Mon Oct 18, 2010 10:05 pm

Thanx a lot from me too.
At last I can play my albums the way I want them.

Greets
Vianos

Alfman66
Posts:1
Joined:Mon Dec 20, 2010 2:59 pm
AV Hardware:Denon AVR-3808
Popcorn Hour A100
Twonky Manager 6.0.28

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

Post by Alfman66 » Mon Dec 20, 2010 3:09 pm

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

User avatar
mikle_01
Posts:208
Joined:Sat Jul 09, 2005 11:32 am
Location:Germany, Kiel

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

Post by mikle_01 » Wed Jan 19, 2011 9:42 am

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
NAS: Synology DS211j 4TB with Twonky 6.0.31 "Kirkwood"- Clients: Philips Streamium NP2500, Sagem "My Dual 700", WD TV Live Gen.2 + Gen.3, - TV:Philips 42PFL8654

Crashdot
Posts:4
Joined:Wed Jan 27, 2010 5:32 am
AV Hardware:Twonky Media Server 4.4.5 on Windows
Denon AVR-4306
Nokia N900

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

Post by Crashdot » Sat Apr 16, 2011 2:39 am

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

PeeBee
Posts:392
Joined:Sat Jun 13, 2009 12:16 pm
AV Hardware:Buffalo LS Pro; PS3; Samsung LE37B650

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

Post by PeeBee » Sun Apr 17, 2011 3:10 pm

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
Samsung LE37B650T2WXXU; Liteon 5055GDL+ HDD/DVD Recorder; Playstation 3; Iomega Screenplay HD 500GB; Buffalo Linkstation Pro LS-320GL (running Twonky 6.0.30, SqueezeBox Server 7.6 and acting as a Print Server)

CharlesBrowner
Posts:6
Joined:Sat May 14, 2011 9:10 am
AV Hardware:Noxon IRadio Cube

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

Post by CharlesBrowner » Sat May 14, 2011 9:15 am

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

Kruge
Posts:2
Joined:Mon Nov 01, 2010 7:54 pm
AV Hardware:twonkyserver, psp3

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

Post by Kruge » Sat Jul 02, 2011 8:57 pm

What was your solution? :?:

CharlesBrowner
Posts:6
Joined:Sat May 14, 2011 9:10 am
AV Hardware:Noxon IRadio Cube

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

Post by CharlesBrowner » Sat Jul 02, 2011 10:31 pm

[quote="Kruge"]What was your solution? :?:[/quote]

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

sibolebe
Posts:3
Joined:Tue Aug 23, 2011 11:17 am
AV Hardware:Buffalo Linkstaion LS-WXL
Panasonic TX-P42GW20

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

Post by sibolebe » Tue Aug 23, 2011 11:31 am

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

sibolebe
Posts:3
Joined:Tue Aug 23, 2011 11:17 am
AV Hardware:Buffalo Linkstaion LS-WXL
Panasonic TX-P42GW20

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

Post by sibolebe » Wed Aug 24, 2011 7:38 am

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

CharlesBrowner
Posts:6
Joined:Sat May 14, 2011 9:10 am
AV Hardware:Noxon IRadio Cube

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

Post by CharlesBrowner » Wed Aug 24, 2011 5:48 pm

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

sibolebe
Posts:3
Joined:Tue Aug 23, 2011 11:17 am
AV Hardware:Buffalo Linkstaion LS-WXL
Panasonic TX-P42GW20

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

Post by sibolebe » Thu Aug 25, 2011 6:53 am

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

Twonky_Rick
Posts:3816
Joined:Wed Nov 19, 2008 1:59 am
AV Hardware:Samsung 650 Series TV (2010), 4.5TB HP MediaSmart server with 100,000 songs, 5) AT&T U-Verse STB, CE form-factor Media Center PC and 6 other networked PCs running TwonkyManager, 2 Sonos ZP80, Sonos S5 speaker, Apple TV (running XBMC), Roku Soundbridge, X-Box 360, Sony PS3, Kodak 10" Wireless Photo Frame, iPhone with PlugPlayer software, Sonos CR-100.
Location:San Diego
Contact:

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

Post by Twonky_Rick » Fri Aug 26, 2011 7:10 pm

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
Follow me on Twitter! mostlytech1
Checkout my blog: http://mostly-tech.com/

BILLH
Posts:2
Joined:Mon Feb 27, 2012 12:59 am
AV Hardware:WDLive 1TB NAS

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

Post by BILLH » Mon Feb 27, 2012 1:08 am

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.

BILLH
Posts:2
Joined:Mon Feb 27, 2012 12:59 am
AV Hardware:WDLive 1TB NAS

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

Post by BILLH » Mon Feb 27, 2012 4:26 pm

^^^
Bump.

Anybody have any suggestions?

Twonky_Rick
Posts:3816
Joined:Wed Nov 19, 2008 1:59 am
AV Hardware:Samsung 650 Series TV (2010), 4.5TB HP MediaSmart server with 100,000 songs, 5) AT&T U-Verse STB, CE form-factor Media Center PC and 6 other networked PCs running TwonkyManager, 2 Sonos ZP80, Sonos S5 speaker, Apple TV (running XBMC), Roku Soundbridge, X-Box 360, Sony PS3, Kodak 10" Wireless Photo Frame, iPhone with PlugPlayer software, Sonos CR-100.
Location:San Diego
Contact:

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

Post by Twonky_Rick » Tue Mar 20, 2012 11:33 pm

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
Follow me on Twitter! mostlytech1
Checkout my blog: http://mostly-tech.com/

Post Reply