(2020-04-08, 16:42)black_eagle Wrote: Assuming that your files are tagged correctly then all you need to do is copy a couple of albums from the UPnP server to a directory that Kodi can access. Then you need to
- Add the directory as a music source (settings->media->music (under manage sources) ->Add music)
- After selecting the directory as above, answer Yes to "Do you want to add the media from this source to your library?"
- Wait for Kodi to scan in the album(s)
Then just navigate via albums or artists to whatever you just added and view the songs in it. Make sure that sort by is set to track and then try it with your UPnP server.
However, some googling reveals that jjd-uk could indeed be right and it is related to the server. For instance, https://community.netgear.com/t5/Using-y...d-p/982613 and https://community.wd.com/t/twonky-sortin...till/57163
Thanks for the instructions.
I've made the test (see video at
https://1drv.ms/v/s!AjBPRo9wXw9s7ptYeHTw...w?e=fRkqeo), and for local albums it seems that the default is "sort by (song) name" but when you change the sort order it is remembered on a per-album basis.
I have other DLNA players and they do abide by the track number tag in my MP3 files. And BTW the filenames use a "track number - song title.mp3" convention so as to be compatible with other players that sort by filename.
It seems that playing from a UPnP source shows a default of "sort by track" but actually sorts by "song title" (and not by filename as suggested in the Netgear thread).
If that's a server-side issue, then it means the UPnP player in Kodi doesn't
initially sort as specified (i.e. by Track), but just plays in the order the tracks are returned by the server, and performs a sort only if one changes the sort order (see video).
I've looked at my TwonkyServer configuration files and they actually specify to return the tracks in Track order to the UPnP client:
<container name='artist' id='music/artists' class='object.container' createClass='object.item.audioItem.musicTrack'>
<container buildon='upnp:artist[7]' class='object.container' createClass='object.item.audioItem.musicTrack'>
<container buildon='upnp:artist[2]' class='object.container.person.musicArtist' createClass='object.item.audioItem.musicTrack'>
<container buildon='upnp:artist' class='object.container.person.musicArtist' createClass='object.item.audioItem.musicTrack'>
<container name='allname' createClass='object.item.audioItem.musicTrack' class='object.container' />
<container buildon='upnp:album' albumart='1' sortcriteria='+pv:numberOfThisDisc,+upnp:originalTrackNumber' createClass='object.item.audioItem.musicTrack' class='object.container.album.musicAlbum' /></container>
</container>
and VLC's UPnP player, which defaults to "no sort" IOW "play in order tracks are returned by server" does reflect that, see
https://1drv.ms/u/s!AjBPRo9wXw9s7ptc768R...A?e=UuqXVF
(I've verified this by intentionally changing the order in TwonkyServer's configuration file and checking the effect on VLC).