View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012781 | MMW v4 | DLNA/UPnP | public | 2015-07-09 22:16 | 2015-08-01 00:52 |
Reporter | marek | Assigned To | |||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 4.1.8 | ||||
Fixed in Version | 4.1.9 | ||||
Summary | 0012781: ChildCount and MM_TracksCount is always zero when browsing UPnP | ||||
Description | I 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> | ||||
Tags | No tags attached. | ||||
Fixed in build | 1752 | ||||
|
<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. |
|
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) |
|
Verified 1752 |