Menu

Album tracks listed alphapetically (0.12.2)

2017-01-01
2017-01-15
  • Gavin Whitehead

    Gavin Whitehead - 2017-01-01

    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

     
  • Thev00d00

    Thev00d00 - 2017-01-03

    Can you get a packet capture/xml dump of the mediatomb response?

     
  • Gavin Whitehead

    Gavin Whitehead - 2017-01-03

    Wireshark packet capture and text rendering of XML (from frame 19) available here
    https://filebin.net/7im31c6k8xxfrn0r

     
  • Thev00d00

    Thev00d00 - 2017-01-04

    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"

     
  • Thev00d00

    Thev00d00 - 2017-01-04

    Also, it looks like SortCriteria is not yet supported by MT....

     
  • Gavin Whitehead

    Gavin Whitehead - 2017-01-11

    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.

     
  • Thev00d00

    Thev00d00 - 2017-01-12

    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?

     
  • Gavin Whitehead

    Gavin Whitehead - 2017-01-13

    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

     
  • Thev00d00

    Thev00d00 - 2017-01-14

    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 :)

     
  • Gavin Whitehead

    Gavin Whitehead - 2017-01-15

    Thanks for all yorr help with this.
    I am going to park MediaTomb for a while but hope to return to it later.

     

Log in to post a comment.