I'm running mediatomb 0.12.2 on Xubuntu 16.04.1.
When I view an album from the Web UI or from a uPnP client (VLC on Windows and Smart Player on Windows Phone) all album tracks are listed alphabetically rather than by track number.
I have googled around and can see lots of people saying that if the container is of type "object.container.album.musicAlbum" then the tracks should list in track order. After import my heirarchy (a selction of) under database is like this - with the type show in brackets.
OK. I now have a capture between 192.168.0.11 (Smartplayer on my phone) and 192.168.0.4 (Mediatomb on my Ubuntu system) available here https://filebin.net/axldmh2h6inv7slm
I can see the "/upnp/control/cds" request in packet 4.
The response seems to come in packet 19.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That is odd, clearly it has the metadata, and the code looks like it should add an "ORDER BY TRACK_NUMBER", so perhaps that is missing? Could you take a look at your respective DB and see if the track_number column is populated?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Mmmm. TRACK_NUMBER == NULL for all records in mt_cds_object.
So my import didn't bring in track numbers. I ran mediatomb 'out-of-the box'. From memory, the only config changes were directory paths.
I assumed mediatomb would handle track numbers, without the need for a bespoke script. Am I wrong in this assumption?
My filesystem layout is
/data/Music/ABBA/ABBA Gold Greatest Hits/
01 Dancing Queen.flac
02 Knowing Me, Knowing you.flac
etc
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm running mediatomb 0.12.2 on Xubuntu 16.04.1.
When I view an album from the Web UI or from a uPnP client (VLC on Windows and Smart Player on Windows Phone) all album tracks are listed alphabetically rather than by track number.
I have googled around and can see lots of people saying that if the container is of type "object.container.album.musicAlbum" then the tracks should list in track order. After import my heirarchy (a selction of) under database is like this - with the type show in brackets.
Database
+Audio (object.container)
++Artisits (object.container)
+++ABBA (object.container)
++++ABBA Gold Greatest Hits (object.container.album.musicAlbum)
+++++Chiquita (object.item.audioItem.musicTrack)
+++++Dancing Queen (object.item.audioItem.musicTrack)
Can anyone help me to get the clients to see the albums in track order?
Gavin
Can you get a packet capture/xml dump of the mediatomb response?
Wireshark packet capture and text rendering of XML (from frame 19) available here
https://filebin.net/7im31c6k8xxfrn0r
Hi Gavin, it looks like that is a capture of the web ui output rather than the upnp request itself.
You are looking for HTTP/XML to "/upnp/control/cds" containing a SOAP "s:Envelope"
Also, it looks like SortCriteria is not yet supported by MT....
OK. I now have a capture between 192.168.0.11 (Smartplayer on my phone) and 192.168.0.4 (Mediatomb on my Ubuntu system) available here https://filebin.net/axldmh2h6inv7slm
I can see the "/upnp/control/cds" request in packet 4.
The response seems to come in packet 19.
That is odd, clearly it has the metadata, and the code looks like it should add an "ORDER BY TRACK_NUMBER", so perhaps that is missing? Could you take a look at your respective DB and see if the track_number column is populated?
Mmmm. TRACK_NUMBER == NULL for all records in mt_cds_object.
So my import didn't bring in track numbers. I ran mediatomb 'out-of-the box'. From memory, the only config changes were directory paths.
I assumed mediatomb would handle track numbers, without the need for a bespoke script. Am I wrong in this assumption?
My filesystem layout is
/data/Music/ABBA/ABBA Gold Greatest Hits/
01 Dancing Queen.flac
02 Knowing Me, Knowing you.flac
etc
You need to make sure your version was built with libflac support on vanilla mediatomb or taglib support on my fork.
Obviously OOTB varies on different distributions :)
Thanks for all yorr help with this.
I am going to park MediaTomb for a while but hope to return to it later.