View Issue Details

IDProjectCategoryView StatusLast Update
0012781MMW v4DLNA/UPnPpublic2015-08-01 00:52
Reportermarek Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version4.1.8 
Fixed in Version4.1.9 
Summary0012781: ChildCount and MM_TracksCount is always zero when browsing UPnP
DescriptionI would like to add some additional info to MMA when browsing UPnP server and I wanted to add count of album tracks but it is always zero.

<container id="0\Music\Album\A\A Farewell To Kings (Rush)" parentID="0\Music\Album\A" restricted="1" searchable="0" childCount="0">
    <dc:title>A Farewell To Kings (Rush)
    </dc:title>
    <dc:creator>Rush
    </dc:creator>
    <upnp:artist role="Performer">Rush
    </upnp:artist>
    <upnp:albumArtURI dlna:profileID="JPEG_TN">http://192.168.1.107:4000/880.jpg
    </upnp:albumArtURI>
    <upnp:MM_TracksCount>0
    </upnp:MM_TracksCount>
    <upnp:MM_NextCheckState>-1
    </upnp:MM_NextCheckState>
    <upnp:class>object.container.album.musicAlbum
    </upnp:class>
  </container>
TagsNo tags attached.
Fixed in build1752

Activities

Ludek

2015-07-10 11:35

developer   ~0042701

Last edited: 2015-07-10 11:58

<upnp:MM_TracksCount> was used only for playlists and only for WiFi sync.

So the actual bug is that MMW is serving this element via UPnP.

I wouldn't add it and rather always use the childCount attribute (according to the UPnP standard).

Looking at the actual MMW code, we serve childCount only for playlists (number of subplaylists), folder (number of subfolders), artists (number of albums).

But it looks like that we should rather serve all sub-items count,
e.g. when playlist has 2 subplaylists and 6 tracks then childCount should be 8 instead of 2. It is not explicitly noted in the UPnP standard, but based on logic how others are using this it seems more correct.

Ludek

2015-07-27 16:55

developer   ~0042763

Fixed in build 4.1.9.1752

a) <upnp:MM_TracksCount> is not served at all for standerd UPnP browsing (only in case of WiFi sync)

b) childCount attribute is served for items where it has no impact on performance (e.g. albums, artists, genres) and indicates all subitems count (i.e. both containers and files)

peke

2015-08-01 00:52

developer   ~0042788

Verified 1752