Menu

#311 Samsung TV built-in DLNA client broken since v1.1.5

v1.0 (example)
open
nobody
None
5
2017-08-15
2017-08-08
No

The Samsung ES8000 TV works with minidlna/ReadyMedia up to and including v1.1.4.

However in v1.1.5 and v1.2.0, the TV displays an error and the following is logged:

[2017/08/04 23:27:01] upnpsoap.c:123: warn: Returning UPnPError 402: Invalid Args

... which further debug code indicates is coming from:

       if( !ObjectID && !(ObjectID = GetValueFromNameValueList(&data, "ContainerID")) )
       {
               SoapError(h, 402, "Invalid Args");

               goto browse_error;
       }

HTTP debug (from v1.1.5) shows:

[2017/08/07 23:35:43] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 1]
[2017/08/07 23:35:43] upnphttp.c:880: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
Accept: */*
User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
Host: x.x.x.x:2869
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"
CONTENT-TYPE:  text/xml; charset="utf-8"
Content-Length: 291
Connection: close

<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:X_GetF
eatureList xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"></u:X_GetFeatureList></s:Body></s:Envelope>
[2017/08/07 23:35:43] upnphttp.c:655: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList
[2017/08/07 23:35:43] upnpsoap.c:1985: debug: SoapMethod: X_GetFeatureList
[2017/08/07 23:35:43] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
Content-Type: text/xml; charset="utf-8"
Connection: close
Content-Length: 783
Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.5
Date: Mon, 07 Aug 2017 22:35:43 GMT
EXT:

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_GetFeatureListResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><FeatureList>&lt;Features xmlns="urn:schemas-upnp-org:av:avs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:schemas-upnp-org:av:avs http://www.upnp.org/schemas/av/avs.xsd"&gt;&lt;Feature name="samsung.com_BASICVIEW" version="1"&gt;&lt;container id="1" type="object.item.audioItem"/&gt;&lt;container id="2" type="object.item.videoItem"/&gt;&lt;container id="3" type="object.item.imageItem"/&gt;&lt;/Feature&gt;&lt;/Features&gt;</FeatureList></u:X_GetFeatureListResponse></s:Body></s:Envelope>

[2017/08/07 23:35:43] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 1]
[2017/08/07 23:35:43] upnphttp.c:880: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
Accept: */*
User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
Host: x.x.x.x:2869
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"
CONTENT-TYPE:  text/xml; charset="utf-8"
Content-Length: 291
Connection: close

<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:X_GetFeatureList xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"></u:X_GetFeatureList></s:Body></s:Envelope>
[2017/08/07 23:35:43] upnphttp.c:655: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList
[2017/08/07 23:35:43] upnpsoap.c:1985: debug: SoapMethod: X_GetFeatureList
[2017/08/07 23:35:43] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
Content-Type: text/xml; charset="utf-8"
Connection: close
Content-Length: 783
Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.5
Date: Mon, 07 Aug 2017 22:35:43 GMT
EXT:

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_GetFeatureListResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><FeatureList>&lt;Features xmlns="urn:schemas-upnp-org:av:avs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:schemas-upnp-org:av:avs http://www.upnp.org/schemas/av/avs.xsd"&gt;&lt;Feature name="samsung.com_BASICVIEW" version="1"&gt;&lt;container id="1" type="object.item.audioItem"/&gt;&lt;container id="2" type="object.item.videoItem"/&gt;&lt;container id="3" type="object.item.imageItem"/&gt;&lt;/Feature&gt;&lt;/Features&gt;</FeatureList></u:X_GetFeatureListResponse></s:Body></s:Envelope>

[2017/08/07 23:35:43] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 1]
[2017/08/07 23:35:43] upnphttp.c:880: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
Accept: */*
User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
Host: x.x.x.x:2869
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
CONTENT-TYPE:  text/xml; charset="utf-8"
Content-Length: 451
Connection: close

<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><ObjectID></ObjectID><BrowseFlag>BrowseDirectChildren</BrowseFlag><Filter>*</Filter><StartingIndex>0</StartingIndex><RequestedCount>30</RequestedCount><SortCriteria></SortCriteria></u:Browse></s:Body></s:Envelope>
[2017/08/07 23:35:43] upnphttp.c:655: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#Browse
[2017/08/07 23:35:43] upnpsoap.c:1985: debug: SoapMethod: Browse
[2017/08/07 23:35:43] upnpsoap.c:123: warn: Returning UPnPError 402: Invalid Args
[2017/08/07 23:35:43] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset="utf-8"
Connection: close
Content-Length: 396
Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.5
Date: Mon, 07 Aug 2017 22:35:43 GMT
EXT:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>402</errorCode><errorDescription>Invalid Args</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>

Discussion

  • Justin Maggard

    Justin Maggard - 2017-08-09

    That is definitely an invalid argument. I was under the impression that Samsung had cleaned those bugs up many years ago. How old is your TV model?

    Does this patch help?

    diff --git a/upnpsoap.c b/upnpsoap.c
    index 61067e772..6cc462e77 100644
    --- a/upnpsoap.c
    +++ b/upnpsoap.c
    @@ -1285,8 +1285,15 @@ BrowseContentDirectory(struct upnphttp * h, const char * action)
            }
            if( !ObjectID && !(ObjectID = GetValueFromNameValueList(&data, "ContainerID")) )
            {
    -               SoapError(h, 402, "Invalid Args");
    -               goto browse_error;
    +               if (h->req_client && (h->req_client->type->flags & FLAG_SAMSUNG_DCM10))
    +               {
    +                       ObjectID = "0";
    +               }
    +               else
    +               {
    +                       SoapError(h, 402, "Invalid Args");
    +                       goto browse_error;
    +               }
            }
    
            str.data = malloc(DEFAULT_RESP_SIZE);
    
     
  • Stuart Shelton

    Stuart Shelton - 2017-08-09

    Great, thanks - I'll try that patch now and report back.

    The TV is a Samsung ES8000 which dates from around 2012, and it also has the Evolution Kit from 2013. Both are patched up to the most recent firmware.

     
  • Stuart Shelton

    Stuart Shelton - 2017-08-09

    Hmm - interesting... it works, but the behaviour under v1.1.4 and below was that you'd be offered a choice, after choosing "Audio", "Video", or "Pictures", of "All Video" (for example), "Folders" and "Recently Added".

    With the above patch, v1.2.0 jumps straight to the "All items" view, without first giving a choice of limiting the items shown.

    (... and with a large number of items, crashed Samsung's UI - but I doubt that's RM's problem)

    Does a different ObjectID allow the second-level menu to be shown? Is it possible to modify the above patch to restore the "All <item>"/"Folders"/"Recently Added" sub-menu?

     
  • Justin Maggard

    Justin Maggard - 2017-08-09

    It's hard to say what the TV has decided to do. Can you post debug logs from the conversation with the TV after the patch is applied?

     
  • Stuart Shelton

    Stuart Shelton - 2017-08-10

    Interesting to note that Music and Photos still show meta-categories (such as Recent Items/Newly Added, Folders, etc.) first. Only Videos jumps straight to the full item-list, which then causes the Samsung client to crash after a period (presumably because it's trying to display every item at once, rather than paging).

    minidlna-1.2.0 + patch:

    [2017/08/10 23:11:00] clients.c:318: debug: Client found in cache. [Samsung Series [CDEFJ]/entry 0]
    [2017/08/10 23:11:00] upnphttp.c:889: debug: HTTP REQUEST: GET /icons/lrg.png HTTP/1.0
    HOST: x.x.x.x:2869
    ACCEPT-LANGUAGE: en-us
    getcontentFeatures.dlna.org:1
    transferMode.dlna.org:Interactive
    
    [2017/08/10 23:11:00] upnphttp.c:1398: debug: Sending large PNG icon
    [2017/08/10 23:11:00] clients.c:318: debug: Client found in cache. [Unknown/entry 2]
    [2017/08/10 23:11:00] upnphttp.c:889: debug: HTTP REQUEST: GET / HTTP/1.0
    User-Agent: HTTP-Monitor/1.1
    Connection: close
    
    [2017/08/10 23:11:00] upnphttp.c:1225: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/html
    Connection: close
    Content-Length: 799
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.2.0
    Date: Thu, 10 Aug 2017 22:11:00 GMT
    EXT:
    
    <HTML><HEAD><TITLE>MiniDLNA 1.2.0</TITLE></HEAD><BODY><div style="text-align: center"><h2>MiniDLNA status</h2></div><h3>Media library</h3><table border=1 cellpadding=10><tr><td>Audio files</td><td>0</td></tr><tr><td>Video files</td><td>721</td></tr><tr><td>Image files</td><td>0</td></tr></table><h3>Connected clients</h3><table border=1 cellpadding=10><tr><td>ID</td><td>Type</td><td>IP Address</td><td>HW Address</td><td>Connections</td></tr><tr><td>0</td><td>Samsung Series [CDEFJ]</td><td>10.1.69.213</td><td>5C:A3:9D:63:09:D5</td><td>0</td></tr><tr><td>1</td><td>Generic DLNA 1.5</td><td>10.1.16.44</td><td>C4:2C:03:04:FF:2C</td><td>0</td></tr><tr><td>2</td><td>Unknown</td><td>127.0.0.1</td><td>FF:FF:FF:FF:FF:FF</td><td>0</td></tr></table><br>-1 connections currently open<br></BODY></HTML>
    
    [2017/08/10 23:11:00] clients.c:318: debug: Client found in cache. [Samsung Series [CDEFJ]/entry 0]
    [2017/08/10 23:11:00] upnphttp.c:889: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 291
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:X_GetFeatureList xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"></u:X_GetFeatureList></s:Body></s:Envelope>
    [2017/08/10 23:11:00] upnphttp.c:670: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList
    [2017/08/10 23:11:00] upnpsoap.c:2173: debug: SoapMethod: X_GetFeatureList
    [2017/08/10 23:11:00] upnphttp.c:1225: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 783
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.2.0
    Date: Thu, 10 Aug 2017 22:11:00 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_GetFeatureListResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><FeatureList>&lt;Features xmlns="urn:schemas-upnp-org:av:avs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:schemas-upnp-org:av:avs http://www.upnp.org/schemas/av/avs.xsd"&gt;&lt;Feature name="samsung.com_BASICVIEW" version="1"&gt;&lt;container id="1" type="object.item.audioItem"/&gt;&lt;container id="2" type="object.item.videoItem"/&gt;&lt;container id="3" type="object.item.imageItem"/&gt;&lt;/Feature&gt;&lt;/Features&gt;</FeatureList></u:X_GetFeatureListResponse></s:Body></s:Envelope>
    
    [2017/08/10 23:11:00] clients.c:318: debug: Client found in cache. [Samsung Series [CDEFJ]/entry 0]
    [2017/08/10 23:11:00] upnphttp.c:889: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 291
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:X_GetFeatureList xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"></u:X_GetFeatureList></s:Body></s:Envelope>
    [2017/08/10 23:11:00] upnphttp.c:670: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList
    [2017/08/10 23:11:00] upnpsoap.c:2173: debug: SoapMethod: X_GetFeatureList
    [2017/08/10 23:11:00] upnphttp.c:1225: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 783
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.2.0
    Date: Thu, 10 Aug 2017 22:11:00 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_GetFeatureListResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><FeatureList>&lt;Features xmlns="urn:schemas-upnp-org:av:avs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:schemas-upnp-org:av:avs http://www.upnp.org/schemas/av/avs.xsd"&gt;&lt;Feature name="samsung.com_BASICVIEW" version="1"&gt;&lt;container id="1" type="object.item.audioItem"/&gt;&lt;container id="2" type="object.item.videoItem"/&gt;&lt;container id="3" type="object.item.imageItem"/&gt;&lt;/Feature&gt;&lt;/Features&gt;</FeatureList></u:X_GetFeatureListResponse></s:Body></s:Envelope>
    
    [2017/08/10 23:11:00] clients.c:318: debug: Client found in cache. [Samsung Series [CDEFJ]/entry 0]
    [2017/08/10 23:11:00] upnphttp.c:889: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 451
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><ObjectID></ObjectID><BrowseFlag>BrowseDirectChildren</BrowseFlag><Filter>*</Filter><StartingIndex>0</StartingIndex><RequestedCount>30</RequestedCount><SortCriteria></SortCriteria></u:Browse></s:Body></s:Envelope>
    [2017/08/10 23:11:00] upnphttp.c:670: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#Browse
    [2017/08/10 23:11:00] upnpsoap.c:2173: debug: SoapMethod: Browse
    [2017/08/10 23:11:00] upnpsoap.c:1315: debug: Browsing ContentDirectory:
     * ObjectID: 0
     * Count: 30
     * StartingIndex: 0
     * BrowseFlag: BrowseDirectChildren
     * Filter: *
     * SortCriteria: (null)
    [2017/08/10 23:11:00] upnpsoap.c:1413: debug: Browse SQL: SELECT o.OBJECT_ID, o.PARENT_ID, o.REF_ID, o.DETAIL_ID, o.CLASS, d.SIZE, d.TITLE, d.DURATION, d.BITRATE, d.SAMPLERATE, d.ARTIST, d.ALBUM, d.GENRE, d.COMMENT, d.CHANNELS, d.TRACK, d.DATE, d.RESOLUTION, d.THUMBNAIL, d.CREATOR, d.DLNA_PN, d.MIME, d.ALBUM_ART, d.ROTATION, d.DISC from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID) where PARENT_ID = '0'  limit 0, 30;
    [2017/08/10 23:11:00] upnphttp.c:1225: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 1671
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.2.0
    Date: Thu, 10 Aug 2017 22:11:00 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result>&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"&gt;
    &lt;container id="64" parentID="0" restricted="1" searchable="1" childCount="321"&gt;&lt;dc:title&gt;Browse Folders&lt;/dc:title&gt;&lt;upnp:class&gt;object.container.storageFolder&lt;/upnp:class&gt;&lt;upnp:storageUsed&gt;-1&lt;/upnp:storageUsed&gt;&lt;/container&gt;&lt;container id="1" parentID="0" restricted="1" searchable="1" childCount="7"&gt;&lt;dc:title&gt;Music&lt;/dc:title&gt;&lt;upnp:class&gt;object.container.storageFolder&lt;/upnp:class&gt;&lt;upnp:storageUsed&gt;-1&lt;/upnp:storageUsed&gt;&lt;/container&gt;&lt;container id="3" parentID="0" restricted="1" searchable="1" childCount="5"&gt;&lt;dc:title&gt;Pictures&lt;/dc:title&gt;&lt;upnp:class&gt;object.container.storageFolder&lt;/upnp:class&gt;&lt;upnp:storageUsed&gt;-1&lt;/upnp:storageUsed&gt;&lt;/container&gt;&lt;container id="2" parentID="0" restricted="1" searchable="1" childCount="3"&gt;&lt;dc:title&gt;Video&lt;/dc:title&gt;&lt;upnp:class&gt;object.container.storageFolder&lt;/upnp:class&gt;&lt;upnp:storageUsed&gt;-1&lt;/upnp:storageUsed&gt;&lt;/container&gt;&lt;/DIDL-Lite&gt;</Result>
    <NumberReturned>4</NumberReturned>
    <TotalMatches>4</TotalMatches>
    <UpdateID>37</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
    
    [2017/08/10 23:11:00] clients.c:318: debug: Client found in cache. [Samsung Series [CDEFJ]/entry 0]
    [2017/08/10 23:11:00] upnphttp.c:889: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 451
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><ObjectID></ObjectID><BrowseFlag>BrowseDirectChildren</BrowseFlag><Filter>*</Filter><StartingIndex>0</StartingIndex><RequestedCount>30</RequestedCount><SortCriteria></SortCriteria></u:Browse></s:Body></s:Envelope>
    [2017/08/10 23:11:00] upnphttp.c:670: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#Browse
    [2017/08/10 23:11:00] upnpsoap.c:2173: debug: SoapMethod: Browse
    [2017/08/10 23:11:00] upnpsoap.c:1315: debug: Browsing ContentDirectory:
     * ObjectID: 0
     * Count: 30
     * StartingIndex: 0
     * BrowseFlag: BrowseDirectChildren
     * Filter: *
     * SortCriteria: (null)
    [2017/08/10 23:11:00] upnpsoap.c:1413: debug: Browse SQL: SELECT o.OBJECT_ID, o.PARENT_ID, o.REF_ID, o.DETAIL_ID, o.CLASS, d.SIZE, d.TITLE, d.DURATION, d.BITRATE, d.SAMPLERATE, d.ARTIST, d.ALBUM, d.GENRE, d.COMMENT, d.CHANNELS, d.TRACK, d.DATE, d.RESOLUTION, d.THUMBNAIL, d.CREATOR, d.DLNA_PN, d.MIME, d.ALBUM_ART, d.ROTATION, d.DISC from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID) where PARENT_ID = '0'  limit 0, 30;
    [2017/08/10 23:11:00] upnphttp.c:1225: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 1671
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.2.0
    Date: Thu, 10 Aug 2017 22:11:00 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result>&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"&gt;
    &lt;container id="64" parentID="0" restricted="1" searchable="1" childCount="321"&gt;&lt;dc:title&gt;Browse Folders&lt;/dc:title&gt;&lt;upnp:class&gt;object.container.storageFolder&lt;/upnp:class&gt;&lt;upnp:storageUsed&gt;-1&lt;/upnp:storageUsed&gt;&lt;/container&gt;&lt;container id="1" parentID="0" restricted="1" searchable="1" childCount="7"&gt;&lt;dc:title&gt;Music&lt;/dc:title&gt;&lt;upnp:class&gt;object.container.storageFolder&lt;/upnp:class&gt;&lt;upnp:storageUsed&gt;-1&lt;/upnp:storageUsed&gt;&lt;/container&gt;&lt;container id="3" parentID="0" restricted="1" searchable="1" childCount="5"&gt;&lt;dc:title&gt;Pictures&lt;/dc:title&gt;&lt;upnp:class&gt;object.container.storageFolder&lt;/upnp:class&gt;&lt;upnp:storageUsed&gt;-1&lt;/upnp:storageUsed&gt;&lt;/container&gt;&lt;container id="2" parentID="0" restricted="1" searchable="1" childCount="3"&gt;&lt;dc:title&gt;Video&lt;/dc:title&gt;&lt;upnp:class&gt;object.container.storageFolder&lt;/upnp:class&gt;&lt;upnp:storageUsed&gt;-1&lt;/upnp:storageUsed&gt;&lt;/container&gt;&lt;/DIDL-Lite&gt;</Result>
    <NumberReturned>4</NumberReturned>
    <TotalMatches>4</TotalMatches>
    <UpdateID>37</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
    
    [2017/08/10 23:11:01] clients.c:318: debug: Client found in cache. [Samsung Series [CDEFJ]/entry 0]
    [2017/08/10 23:11:01] upnphttp.c:889: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 453
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><ObjectID>64</ObjectID><BrowseFlag>BrowseDirectChildren</BrowseFlag><Filter>*</Filter><StartingIndex>0</StartingIndex><RequestedCount>30</RequestedCount><SortCriteria></SortCriteria></u:Browse></s:Body></s:Envelope>
    [2017/08/10 23:11:01] upnphttp.c:670: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#Browse
    [2017/08/10 23:11:01] upnpsoap.c:2173: debug: SoapMethod: Browse
    [2017/08/10 23:11:01] upnpsoap.c:1315: debug: Browsing ContentDirectory:
     * ObjectID: 64
     * Count: 30
     * StartingIndex: 0
     * BrowseFlag: BrowseDirectChildren
     * Filter: *
     * SortCriteria: (null)
    [2017/08/10 23:11:01] upnpsoap.c:1413: debug: Browse SQL: SELECT o.OBJECT_ID, o.PARENT_ID, o.REF_ID, o.DETAIL_ID, o.CLASS, d.SIZE, d.TITLE, d.DURATION, d.BITRATE, d.SAMPLERATE, d.ARTIST, d.ALBUM, d.GENRE, d.COMMENT, d.CHANNELS, d.TRACK, d.DATE, d.RESOLUTION, d.THUMBNAIL, d.CREATOR, d.DLNA_PN, d.MIME, d.ALBUM_ART, d.ROTATION, d.DISC from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID) where PARENT_ID = '64'  limit 0, 30;
    [2017/08/10 23:11:01] upnphttp.c:1225: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 16642
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.2.0
    Date: Thu, 10 Aug 2017 22:11:01 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result>&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"&gt;
    &lt;container id="64$0" parentID="64" restricted="1" searchable="1" childCount="176"<...>
    
     
  • Stuart Shelton

    Stuart Shelton - 2017-08-10

    For comparison, v1.1.4 shows a second-level menu of All/Folders/Recent (as previously dfescribed) and, if All Items is chosen, doesn't hang and crash, but pretty much instantly shows a page of items and then loads their thumb-nails.

    I guess that the real question is what changed between v1.1.4 and v1.2.0 in this respect, since the same client is being used in both cases.

    [2017/08/10 23:46:21] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 2]
    [2017/08/10 23:46:21] upnphttp.c:880: debug: HTTP REQUEST: GET /icons/lrg.png HTTP/1.0
    HOST: x.x.x.x:2869
    ACCEPT-LANGUAGE: en-us
    getcontentFeatures.dlna.org:1
    transferMode.dlna.org:Interactive
    
    [2017/08/10 23:46:21] upnphttp.c:1349: debug: Sending large PNG icon
    [2017/08/10 23:46:21] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 2]
    [2017/08/10 23:46:21] upnphttp.c:880: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 291
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:X_GetFeatureList xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"></u:X_GetFeatureList></s:Body></s:Envelope>
    [2017/08/10 23:46:21] upnphttp.c:653: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList
    [2017/08/10 23:46:21] upnpsoap.c:1907: debug: SoapMethod: X_GetFeatureList
    [2017/08/10 23:46:21] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 823
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
    Date: Thu, 10 Aug 2017 22:46:21 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_GetFeatureListResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><FeatureList><?xml version="1.0" encoding="utf-8"?>
    &lt;Features xmlns="urn:schemas-upnp-org:av:avs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:schemas-upnp-org:av:avs http://www.upnp.org/schemas/av/avs.xsd"&gt;&lt;Feature name="samsung.com_BASICVIEW" version="1"&gt;&lt;container id="1" type="object.item.audioItem"/&gt;&lt;container id="2" type="object.item.videoItem"/&gt;&lt;container id="3" type="object.item.imageItem"/&gt;&lt;/Feature&gt;&lt;/Features&gt;</FeatureList></u:X_GetFeatureListResponse></s:Body></s:Envelope>
    
    [2017/08/10 23:46:21] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 2]
    [2017/08/10 23:46:21] upnphttp.c:880: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 291
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:X_GetFeatureList xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"></u:X_GetFeatureList></s:Body></s:Envelope>
    [2017/08/10 23:46:21] upnphttp.c:653: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList
    [2017/08/10 23:46:21] upnpsoap.c:1907: debug: SoapMethod: X_GetFeatureList
    [2017/08/10 23:46:21] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 823
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
    Date: Thu, 10 Aug 2017 22:46:21 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_GetFeatureListResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><FeatureList><?xml version="1.0" encoding="utf-8"?>
    &lt;Features xmlns="urn:schemas-upnp-org:av:avs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:schemas-upnp-org:av:avs http://www.upnp.org/schemas/av/avs.xsd"&gt;&lt;Feature name="samsung.com_BASICVIEW" version="1"&gt;&lt;container id="1" type="object.item.audioItem"/&gt;&lt;container id="2" type="object.item.videoItem"/&gt;&lt;container id="3" type="object.item.imageItem"/&gt;&lt;/Feature&gt;&lt;/Features&gt;</FeatureList></u:X_GetFeatureListResponse></s:Body></s:Envelope>
    
    [2017/08/10 23:46:21] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 2]
    [2017/08/10 23:46:21] upnphttp.c:880: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 291
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:X_GetFeatureList xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"></u:X_GetFeatureList></s:Body></s:Envelope>
    [2017/08/10 23:46:21] upnphttp.c:653: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList
    [2017/08/10 23:46:21] upnpsoap.c:1907: debug: SoapMethod: X_GetFeatureList
    [2017/08/10 23:46:21] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 823
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
    Date: Thu, 10 Aug 2017 22:46:21 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_GetFeatureListResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><FeatureList><?xml version="1.0" encoding="utf-8"?>
    &lt;Features xmlns="urn:schemas-upnp-org:av:avs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:schemas-upnp-org:av:avs http://www.upnp.org/schemas/av/avs.xsd"&gt;&lt;Feature name="samsung.com_BASICVIEW" version="1"&gt;&lt;container id="1" type="object.item.audioItem"/&gt;&lt;container id="2" type="object.item.videoItem"/&gt;&lt;container id="3" type="object.item.imageItem"/&gt;&lt;/Feature&gt;&lt;/Features&gt;</FeatureList></u:X_GetFeatureListResponse></s:Body></s:Envelope>
    
    [2017/08/10 23:46:21] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 2]
    [2017/08/10 23:46:21] upnphttp.c:880: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 451
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><ObjectID>2</ObjectID><BrowseFlag>BrowseDirectChildren</BrowseFlag><Filter>*</Filter><StartingIndex>0</StartingIndex><RequestedCount>1</RequestedCount><SortCriteria></SortCriteria></u:Browse></s:Body></s:Envelope>
    [2017/08/10 23:46:21] upnphttp.c:653: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#Browse
    [2017/08/10 23:46:21] upnpsoap.c:1907: debug: SoapMethod: Browse
    [2017/08/10 23:46:21] upnpsoap.c:1211: debug: Browsing ContentDirectory:
     * ObjectID: 2
     * Count: 1
     * StartingIndex: 0
     * BrowseFlag: BrowseDirectChildren
     * Filter: *
     * SortCriteria: (null)
    [2017/08/10 23:46:21] upnpsoap.c:1303: debug: Browse SQL: SELECT o.OBJECT_ID, o.PARENT_ID, o.REF_ID, o.DETAIL_ID, o.CLASS, d.SIZE, d.TITLE, d.DURATION, d.BITRATE, d.SAMPLERATE, d.ARTIST, d.ALBUM, d.GENRE, d.COMMENT, d.CHANNELS, d.TRACK, d.DATE, d.RESOLUTION, d.THUMBNAIL, d.CREATOR, d.DLNA_PN, d.MIME, d.ALBUM_ART, d.DISC from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID) where PARENT_ID = '2'  limit 0, 1;
    [2017/08/10 23:46:21] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 896
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
    Date: Thu, 10 Aug 2017 22:46:21 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result>&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"&gt;
    &lt;container id="2$8" parentID="2" restricted="1" searchable="1" childCount="721"&gt;&lt;dc:title&gt;All Video&lt;/dc:title&gt;&lt;upnp:class&gt;object.container.storageFolder&lt;/upnp:class&gt;&lt;upnp:storageUsed&gt;-1&lt;/upnp:storageUsed&gt;&lt;/container&gt;&lt;/DIDL-Lite&gt;</Result>
    <NumberReturned>1</NumberReturned>
    <TotalMatches>3</TotalMatches>
    <UpdateID>39</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
    
    [2017/08/10 23:46:22] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 2]
    [2017/08/10 23:46:22] upnphttp.c:880: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 452
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><ObjectID>2</ObjectID><BrowseFlag>BrowseDirectChildren</BrowseFlag><Filter>*</Filter><StartingIndex>0</StartingIndex><RequestedCount>30</RequestedCount><SortCriteria></SortCriteria></u:Browse></s:Body></s:Envelope>
    [2017/08/10 23:46:22] upnphttp.c:653: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#Browse
    [2017/08/10 23:46:22] upnpsoap.c:1907: debug: SoapMethod: Browse
    [2017/08/10 23:46:22] upnpsoap.c:1211: debug: Browsing ContentDirectory:
     * ObjectID: 2
     * Count: 30
     * StartingIndex: 0
     * BrowseFlag: BrowseDirectChildren
     * Filter: *
     * SortCriteria: (null)
    [2017/08/10 23:46:22] upnpsoap.c:1303: debug: Browse SQL: SELECT o.OBJECT_ID, o.PARENT_ID, o.REF_ID, o.DETAIL_ID, o.CLASS, d.SIZE, d.TITLE, d.DURATION, d.BITRATE, d.SAMPLERATE, d.ARTIST, d.ALBUM, d.GENRE, d.COMMENT, d.CHANNELS, d.TRACK, d.DATE, d.RESOLUTION, d.THUMBNAIL, d.CREATOR, d.DLNA_PN, d.MIME, d.ALBUM_ART, d.DISC from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID) where PARENT_ID = '2'  limit 0, 30;
    [2017/08/10 23:46:22] containers.c:164: debug: Found magic container 2 [2$FF0]
    [2017/08/10 23:46:22] containers.c:164: debug: Found magic container 2 [2$FF0]
    [2017/08/10 23:46:22] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 1429
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
    Date: Thu, 10 Aug 2017 22:46:22 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result>&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"&gt;
    &lt;container id="2$8" parentID="2" restricted="1" searchable="1" childCount="721"&gt;&lt;dc:title&gt;All Video&lt;/dc:title&gt;&lt;upnp:class&gt;object.container.storageFolder&lt;/upnp:class&gt;&lt;upnp:storageUsed&gt;-1&lt;/upnp:storageUsed&gt;&lt;/container&gt;&lt;container id="2$15" parentID="2" restricted="1" searchable="1" childCount="274"&gt;&lt;dc:title&gt;Folders&lt;/dc:title&gt;&lt;upnp:class&gt;object.container.storageFolder&lt;/upnp:class&gt;&lt;upnp:storageUsed&gt;-1&lt;/upnp:storageUsed&gt;&lt;/container&gt;&lt;container id="2$FF0" parentID="2" restricted="1" searchable="0" childCount="18"&gt;&lt;dc:title&gt;Recently Added&lt;/dc:title&gt;&lt;upnp:class&gt;object.container.storageFolder&lt;/upnp:class&gt;&lt;upnp:storageUsed&gt;-1&lt;/upnp:storageUsed&gt;&lt;/container&gt;&lt;/DIDL-Lite&gt;</Result>
    <NumberReturned>3</NumberReturned>
    <TotalMatches>3</TotalMatches>
    <UpdateID>39</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
    
    [2017/08/10 23:46:22] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 2]
    [2017/08/10 23:46:22] upnphttp.c:880: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 291
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:X_GetFeatureList xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"></u:X_GetFeatureList></s:Body></s:Envelope>
    [2017/08/10 23:46:22] upnphttp.c:653: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList
    [2017/08/10 23:46:22] upnpsoap.c:1907: debug: SoapMethod: X_GetFeatureList
    [2017/08/10 23:46:22] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 823
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
    Date: Thu, 10 Aug 2017 22:46:22 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_GetFeatureListResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><FeatureList><?xml version="1.0" encoding="utf-8"?>
    &lt;Features xmlns="urn:schemas-upnp-org:av:avs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:schemas-upnp-org:av:avs http://www.upnp.org/schemas/av/avs.xsd"&gt;&lt;Feature name="samsung.com_BASICVIEW" version="1"&gt;&lt;container id="1" type="object.item.audioItem"/&gt;&lt;container id="2" type="object.item.videoItem"/&gt;&lt;container id="3" type="object.item.imageItem"/&gt;&lt;/Feature&gt;&lt;/Features&gt;</FeatureList></u:X_GetFeatureListResponse></s:Body></s:Envelope>
    
    [2017/08/10 23:46:22] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/html
    Connection: close
    Content-Length: 798
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
    Date: Thu, 10 Aug 2017 22:46:22 GMT
    EXT:
    
    <HTML><HEAD><TITLE>MiniDLNA 1.1.4</TITLE></HEAD><BODY><div style="text-align: center"><h2>MiniDLNA status</h2></div><h3>Media library</h3><table border=1 cellpadding=10><tr><td>Audio files</td><td>0</td></tr><tr><td>Video files</td><td>721</td></tr><tr><td>Image files</td><td>0</td></tr></table><h3>Connected clients</h3><table border=1 cellpadding=10><tr><td>ID</td><td>Type</td><td>IP Address</td><td>HW Address</td><td>Connections</td></tr><tr><td>0</td><td>Unknown</td><td>127.0.0.1</td><td>FF:FF:FF:FF:FF:FF</td><td>0</td></tr><tr><td>1</td><td>Generic DLNA 1.5</td><td>10.1.16.44</td><td>C4:2C:03:04:FF:2C</td><td>0</td></tr><tr><td>2</td><td>Samsung Series [CDEF]</td><td>10.1.69.213</td><td>5C:A3:9D:63:09:D5</td><td>0</td></tr></table><br>-1 connections currently open<br></BODY></HTML>
    
    [2017/08/10 23:46:22] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 2]
    [2017/08/10 23:46:22] upnphttp.c:880: debug: HTTP REQUEST: GET /icons/lrg.png HTTP/1.0
    HOST: x.x.x.x:2869
    ACCEPT-LANGUAGE: en-us
    getcontentFeatures.dlna.org:1
    transferMode.dlna.org:Interactive
    
    [2017/08/10 23:46:22] upnphttp.c:1349: debug: Sending large PNG icon
    
    [2017/08/10 23:46:27] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/html
    Connection: close
    Content-Length: 798
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
    Date: Thu, 10 Aug 2017 22:46:27 GMT
    EXT:
    
    <HTML><HEAD><TITLE>MiniDLNA 1.1.4</TITLE></HEAD><BODY><div style="text-align: center"><h2>MiniDLNA status</h2></div><h3>Media library</h3><table border=1 cellpadding=10><tr><td>Audio files</td><td>0</td></tr><tr><td>Video files</td><td>721</td></tr><tr><td>Image files</td><td>0</td></tr></table><h3>Connected clients</h3><table border=1 cellpadding=10><tr><td>ID</td><td>Type</td><td>IP Address</td><td>HW Address</td><td>Connections</td></tr><tr><td>0</td><td>Unknown</td><td>127.0.0.1</td><td>FF:FF:FF:FF:FF:FF</td><td>0</td></tr><tr><td>1</td><td>Generic DLNA 1.5</td><td>10.1.16.44</td><td>C4:2C:03:04:FF:2C</td><td>0</td></tr><tr><td>2</td><td>Samsung Series [CDEF]</td><td>10.1.69.213</td><td>5C:A3:9D:63:09:D5</td><td>0</td></tr></table><br>-1 connections currently open<br></BODY></HTML>
    
    [2017/08/10 23:46:27] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 2]
    [2017/08/10 23:46:27] upnphttp.c:880: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 291
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:X_GetFeatureList xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"></u:X_GetFeatureList></s:Body></s:Envelope>
    [2017/08/10 23:46:27] upnphttp.c:653: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList
    [2017/08/10 23:46:27] upnpsoap.c:1907: debug: SoapMethod: X_GetFeatureList
    [2017/08/10 23:46:27] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 823
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
    Date: Thu, 10 Aug 2017 22:46:27 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_GetFeatureListResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><FeatureList><?xml version="1.0" encoding="utf-8"?>
    &lt;Features xmlns="urn:schemas-upnp-org:av:avs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:schemas-upnp-org:av:avs http://www.upnp.org/schemas/av/avs.xsd"&gt;&lt;Feature name="samsung.com_BASICVIEW" version="1"&gt;&lt;container id="1" type="object.item.audioItem"/&gt;&lt;container id="2" type="object.item.videoItem"/&gt;&lt;container id="3" type="object.item.imageItem"/&gt;&lt;/Feature&gt;&lt;/Features&gt;</FeatureList></u:X_GetFeatureListResponse></s:Body></s:Envelope>
    
    [2017/08/10 23:46:28] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 2]
    [2017/08/10 23:46:28] upnphttp.c:880: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 291
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:X_GetFeatureList xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"></u:X_GetFeatureList></s:Body></s:Envelope>
    [2017/08/10 23:46:28] upnphttp.c:653: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList
    [2017/08/10 23:46:28] upnpsoap.c:1907: debug: SoapMethod: X_GetFeatureList
    [2017/08/10 23:46:28] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 823
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
    Date: Thu, 10 Aug 2017 22:46:28 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_GetFeatureListResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><FeatureList><?xml version="1.0" encoding="utf-8"?>
    &lt;Features xmlns="urn:schemas-upnp-org:av:avs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:schemas-upnp-org:av:avs http://www.upnp.org/schemas/av/avs.xsd"&gt;&lt;Feature name="samsung.com_BASICVIEW" version="1"&gt;&lt;container id="1" type="object.item.audioItem"/&gt;&lt;container id="2" type="object.item.videoItem"/&gt;&lt;container id="3" type="object.item.imageItem"/&gt;&lt;/Feature&gt;&lt;/Features&gt;</FeatureList></u:X_GetFeatureListResponse></s:Body></s:Envelope>
    
    [2017/08/10 23:46:28] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 2]
    [2017/08/10 23:46:28] upnphttp.c:880: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 455
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><ObjectID>2$FF0</ObjectID><BrowseFlag>BrowseDirectChildren</BrowseFlag><Filter>*</Filter><StartingIndex>0</StartingIndex><RequestedCount>1</RequestedCount><SortCriteria></SortCriteria></u:Browse></s:Body></s:Envelope>
    [2017/08/10 23:46:28] upnphttp.c:653: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#Browse
    [2017/08/10 23:46:28] upnpsoap.c:1907: debug: SoapMethod: Browse
    [2017/08/10 23:46:28] upnpsoap.c:1211: debug: Browsing ContentDirectory:
     * ObjectID: 2$FF0
     * Count: 1
     * StartingIndex: 0
     * BrowseFlag: BrowseDirectChildren
     * Filter: *
     * SortCriteria: (null)
    [2017/08/10 23:46:28] containers.c:164: debug: Found magic container 2 [2$FF0]
    [2017/08/10 23:46:28] upnpsoap.c:1303: debug: Browse SQL: SELECT "2$FF0$" || OBJECT_ID, "2$FF0", o.OBJECT_ID, o.DETAIL_ID, o.CLASS, d.SIZE, d.TITLE, d.DURATION, d.BITRATE, d.SAMPLERATE, d.ARTIST, d.ALBUM, d.GENRE, d.COMMENT, d.CHANNELS, d.TRACK, d.DATE, d.RESOLUTION, d.THUMBNAIL, d.CREATOR, d.DLNA_PN, d.MIME, d.ALBUM_ART, d.DISC from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID) where MIME glob 'v*' and REF_ID is NULL and timestamp > (strftime('%s','now') - 7776000)  limit 0, 1;
    [2017/08/10 23:46:28] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 1316
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
    Date: Thu, 10 Aug 2017 22:46:28 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result>&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"&gt;
    &lt;item id="2$FF0$64$5D$0" parentID="2$FF0" restricted="1" refID="64$5D$0"&gt;&lt;dc:title&gt;game.of.thrones.s07e01.web.h264-tbs[ettv]&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2017-07-23T13:41:49&lt;/dc:date&gt;&lt;sec:dcmInfo&gt;CREATIONDATE=0,FOLDER=game.of.thrones.s07e01.web.h264-tbs[ettv],BM=0&lt;/sec:dcmInfo&gt;&lt;res size="809804266" duration="1:00:57.706" bitrate="221396" sampleFrequency="48000" nrAudioChannels="2" resolution="960x540" protocolInfo="http-get:*:video/x-mkv:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000"&gt;http://x.x.x.x:2869/MediaItems/375.mkv&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</Result>
    <NumberReturned>1</NumberReturned>
    <TotalMatches>18</TotalMatches>
    <UpdateID>39</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
    
    [2017/08/10 23:46:28] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 2]
    [2017/08/10 23:46:28] upnphttp.c:880: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 456
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><ObjectID>2$FF0</ObjectID><BrowseFlag>BrowseDirectChildren</BrowseFlag><Filter>*</Filter><StartingIndex>0</StartingIndex><RequestedCount>30</RequestedCount><SortCriteria></SortCriteria></u:Browse></s:Body></s:Envelope>
    [2017/08/10 23:46:28] upnphttp.c:653: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#Browse
    [2017/08/10 23:46:28] upnpsoap.c:1907: debug: SoapMethod: Browse
    [2017/08/10 23:46:28] upnpsoap.c:1211: debug: Browsing ContentDirectory:
     * ObjectID: 2$FF0
     * Count: 30
     * StartingIndex: 0
     * BrowseFlag: BrowseDirectChildren
     * Filter: *
     * SortCriteria: (null)
    [2017/08/10 23:46:28] containers.c:164: debug: Found magic container 2 [2$FF0]
    [2017/08/10 23:46:28] upnpsoap.c:1303: debug: Browse SQL: SELECT "2$FF0$" || OBJECT_ID, "2$FF0", o.OBJECT_ID, o.DETAIL_ID, o.CLASS, d.SIZE, d.TITLE, d.DURATION, d.BITRATE, d.SAMPLERATE, d.ARTIST, d.ALBUM, d.GENRE, d.COMMENT, d.CHANNELS, d.TRACK, d.DATE, d.RESOLUTION, d.THUMBNAIL, d.CREATOR, d.DLNA_PN, d.MIME, d.ALBUM_ART, d.DISC from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID) where MIME glob 'v*' and REF_ID is NULL and timestamp > (strftime('%s','now') - 7776000)  limit 0, 30;
    [2017/08/10 23:46:28] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 13383
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
    Date: Thu, 10 Aug 2017 22:46:28 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result>&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"&gt;
    &lt;item id="2$FF0$64$5D$0" parentID="2$FF0" restricted="1" refID="<...>
    <NumberReturned>18</NumberReturned>
    <TotalMatches>18</TotalMatches>
    <UpdateID>39</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
    
    [2017/08/10 23:46:28] clients.c:271: debug: Client found in cache. [Samsung Series [CDEF]/entry 2]
    [2017/08/10 23:46:28] upnphttp.c:880: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE40ES8000/1.0 DLNADOC/1.50
    Host: x.x.x.x:2869
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"
    CONTENT-TYPE:  text/xml; charset="utf-8"
    Content-Length: 291
    Connection: close
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:X_GetFeatureList xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"></u:X_GetFeatureList></s:Body></s:Envelope>
    [2017/08/10 23:46:28] upnphttp.c:653: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList
    [2017/08/10 23:46:28] upnpsoap.c:1907: debug: SoapMethod: X_GetFeatureList
    [2017/08/10 23:46:28] upnphttp.c:1216: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 823
    Server: 4.11.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
    Date: Thu, 10 Aug 2017 22:46:28 GMT
    EXT:
    
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_GetFeatureListResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><FeatureList><?xml version="1.0" encoding="utf-8"?>
    &lt;Features xmlns="urn:schemas-upnp-org:av:avs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:schemas-upnp-org:av:avs http://www.upnp.org/schemas/av/avs.xsd"&gt;&lt;Feature name="samsung.com_BASICVIEW" version="1"&gt;&lt;container id="1" type="object.item.audioItem"/&gt;&lt;container id="2" type="object.item.videoItem"/&gt;&lt;container id="3" type="object.item.imageItem"/&gt;&lt;/Feature&gt;&lt;/Features&gt;</FeatureList></u:X_GetFeatureListResponse></s:Body></s:Envelope>
    
     
  • Shrimpkin

    Shrimpkin - 2017-08-11

    I guess that the real question is what changed between v1.1.4 and v1.2.0 in this respect, since the same client is being used in both cases.

    A start:

    git log | less -i +/samsung
    

    Did a quick search, the latest firmware for your tv is Aug 2015? Look like Samsung gave up on your tv? Time to buy a new one.

     
    • Stuart Shelton

      Stuart Shelton - 2017-08-11

      Yes, the correct response to a software regression is to replace the hardware! ;)

      In all seriousness, though, I did look at a diff of upnpsoap.c between 1.1.4 and 1.2.0 - and the changes weren't great, but also didn't include anything which to me looked obviously likely to be related - but then, I know nothing of the DLNA DMS/DMP protocols. Is it likely that any change will reference Samsung specifically? Was there some cleanup between 1.1.4 and 1.2.0 which removed work-arounds for devices considered obsolete?

       
  • Shrimpkin

    Shrimpkin - 2017-08-12
    grep -in samsung *.[c,h] | awk -F ':' {'print $1'} | uniq | sort
    

    Show a list of files using samsung. clients.* is of interest. Looks like the profile you are using has changed. Don't know if it will help, but you can try testing with similar flags as v1_1_4.

    diff --git a/clients.c b/clients.c
    index b920258..5ccbd69 100644
    --- a/clients.c
    +++ b/clients.c
    @@ -84,7 +84,7 @@ struct client_type_s client_types[] =
            /* User-Agent: DLNADOC/1.50 SEC_HHP_ Family TV/1.0 */
            /* USER-AGENT: DLNADOC/1.50 SEC_HHP_[TV] UE65JU7000/1.0
    UPnP/1.0 */ { ESamsungSeriesCDE,
    -         FLAG_SAMSUNG | FLAG_DLNA | FLAG_NO_RESIZE | FLAG_SAMSUNG_DCM10 | FLAG_CAPTION_RES,
    +         FLAG_SAMSUNG | FLAG_DLNA | FLAG_NO_RESIZE,
              "Samsung Series [CDEFJ]",
              "SEC_HHP_",
              EUserAgent
    
     
    • Stuart Shelton

      Stuart Shelton - 2017-08-14

      Good news - the exact change above (which presumably means that the earlier patch no longer takes effect) restores working functionality as was the case in v1.1.4: there is the three-item menu initially (All items, Recently Added, Folders) and each of these works - no more hanging followed by a crash when choosing All Items.
      I'm confirming now that it is the FLAG_SAMSUNG_DCM10 flag specifically which is causing the problem for my device.
      It looks as if 'upnphttp.c' contains:

                              else if( h->req_client && h->req_client->type->flags & FLAG_SAMSUNG_DCM10 )
                              {
                                      sendXMLdesc(h, genRootDescSamsung);
                              }
                              else
                              {
                                      sendXMLdesc(h, genRootDesc);
                              }
      

      ... and 2012-era Samsung devices which have been flagged with FLAG_SAMSUNG_DCM10 cannot grok the Samsung-specific description returned.
      So it appears that clients.c needs to further subdivide 'ESamsungSeriesCDE' devices into those which need a non-standard XML description, and those which cannot handle it.

       
  • Justin Maggard

    Justin Maggard - 2017-08-14

    My understanding is that removing the DCM10 flag will break bookmark support, so of course I'd prefer to avoid that. So I have a couple requests.

    1) The 1.2.0+patch debug output seems to have been truncated, and the important parts are missing. Can you maybe write the full output to a file, compress it, and attach it here?
    2) Please try this patch:

    diff --git a/containers.c b/containers.c
    index e1a9c57d9..f5cece11d 100644
    --- a/containers.c
    +++ b/containers.c
    @@ -32,8 +32,10 @@ const char *music_artist_id = MUSIC_ARTIST_ID;
     const char *music_album_id = MUSIC_ALBUM_ID;
     const char *music_plist_id = MUSIC_PLIST_ID;
     const char *music_dir_id = MUSIC_DIR_ID;
    +const char *video_id = VIDEO_ID;
     const char *video_all_id = VIDEO_ALL_ID;
     const char *video_dir_id = VIDEO_DIR_ID;
    +const char *image_id = IMAGE_ID;
     const char *image_all_id = IMAGE_ALL_ID;
     const char *image_date_id = IMAGE_DATE_ID;
     const char *image_camera_id = IMAGE_CAMERA_ID;
    @@ -111,6 +113,11 @@ struct magic_container_s magic_containers[] =
            { NULL, "16", &image_dir_id, NULL, NULL, NULL, NULL, NULL, NULL, -1, FLAG_MS_PFS },
            { NULL, "D2", &image_camera_id, NULL, NULL, NULL, NULL, NULL, NULL, -1, FLAG_MS_PFS },
    
    +       /* Samsung DCM10 containers for Series E(?) */
    +       { NULL, "I", &image_id, NULL, NULL, NULL, NULL, NULL, NULL, -1, FLAG_SAMSUNG_DCM10 },
    +       { NULL, "A", &music_id, NULL, NULL, NULL, NULL, NULL, NULL, -1, FLAG_SAMSUNG_DCM10 },
    +       { NULL, "V", &video_id, NULL, NULL, NULL, NULL, NULL, NULL, -1, FLAG_SAMSUNG_DCM10 },
    +
            /* Jump straight to Music on audio-only devices */
            { NULL, "0", &music_id, NULL, "0", NULL, NULL, NULL, NULL, -1, FLAG_AUDIO_ONLY },
    
    diff --git a/upnpsoap.c b/upnpsoap.c
    index 61067e772..05bf9378e 100644
    --- a/upnpsoap.c
    +++ b/upnpsoap.c
    @@ -2081,6 +2088,12 @@ SamsungGetFeatureList(struct upnphttp * h, const char * action)
                            image = runtime_vars.root_container;
                    }
            }
    +       else if (h->req_client && (h->req_client->type->flags & FLAG_SAMSUNG_DCM10))
    +       {
    +               audio = "A";
    +               video = "V";
    +               image = "I";
    +       }
    
            len = snprintf(body, sizeof(body), resp, audio, video, image);
    
     

    Last edit: Justin Maggard 2017-08-14
    • Stuart Shelton

      Stuart Shelton - 2017-08-15

      Thanks! I'll try this evening.

       
      • Stuart Shelton

        Stuart Shelton - 2017-08-15

        That last patch looks good - a brief test shows All FIles/Recent/Folders after chosing the category of media to stream, and appears not to suffer from crashing when viewing All Files.

        Fast Forward and Rewind when playing media still displays "Not available", but then it always has done, even before v1.1.4... I guess this isn't intended to work with this client?

        All good, though :)

         

        Last edit: Stuart Shelton 2017-08-15
  • Justin Maggard

    Justin Maggard - 2017-08-15

    Great! Would you also be able to capture debug output with this latest patch, and attach it here? It'd be very helpful for simulating your TV in the future for testing.

     

Log in to post a comment.