Check if XBox supports thumbnails

Issue #311 resolved
Petr Nejedly repo owner created an issue

Comments (2)

  1. Petr Nejedly reporter
    • changed version to 0.5.2

    It needs to respond to GET resource with ?albumArt=true for each item like this:

    <s:Body>
    <u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
    CD
    <Result>&lt;DIDL-Lite xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot;&gt;
    &lt;item id=&quot;all*pn/1*pn/11*ps/16*fv/1&quot; parentID=&quot;all*pn/1*pn/11*ps/16&quot; searchable=&quot;0&quot; restricted=&quot;1&quot;&gt;
    &lt;dc:title&gt;Female.Agents.2008.DVDRip.XviD.CD1&lt;/dc:title&gt;
    &lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;
    &lt;upnp:genre&gt;Unknown Genre&lt;/upnp:genre&gt;
    &lt;res duration=&quot;00:56:38.000&quot; bitrate=&quot;215962&quot; protocolInfo=&quot;http-get:*:video/avi:*&quot;&gt;http://192.168.0.3:53168/content/all*pn/1*pn/11*ps/16*fv/1&lt;/res&gt;
    &lt;res protocolInfo=&quot;http-get:*:text/srt:*&quot;&gt;http://192.168.0.3:53168/content/all*pn/1*pn/11*ps/16*fv/1.srt&lt;/res&gt;
    &lt;/item&gt;
    &lt;item id=&quot;all*pn/1*pn/11*ps/16*fv/2&quot; parentID=&quot;all*pn/1*pn/11*ps/16&quot; searchable=&quot;0&quot; restricted=&quot;1&quot;&gt;
    &lt;dc:title&gt;Female.Agents.2008.DVDRip.XviD.CD2&lt;/dc:title&gt;
    &lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;
    &lt;upnp:genre&gt;Unknown Genre&lt;/upnp:genre&gt;
    &lt;res duration=&quot;00:55:29.000&quot; bitrate=&quot;219835&quot; protocolInfo=&quot;http-get:*:video/avi:*&quot;&gt;http://192.168.0.3:53168/content/all*pn/1*pn/11*ps/16*fv/2&lt;/res&gt;
    &lt;res protocolInfo=&quot;http-get:*:text/srt:*&quot;&gt;http://192.168.0.3:53168/content/all*pn/1*pn/11*ps/16*fv/2.srt&lt;/res&gt;
    &lt;/item&gt;
    &lt;item id=&quot;all*pn/1*pn/11*ps/16*fv/3&quot; parentID=&quot;all*pn/1*pn/11*ps/16&quot; searchable=&quot;0&quot; restricted=&quot;1&quot;&gt;
    &lt;dc:title&gt;wipika&lt;/dc:title&gt;
    &lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;
    &lt;upnp:genre&gt;Unknown Genre&lt;/upnp:genre&gt;
    &lt;res duration=&quot;00:19:26.000&quot; bitrate=&quot;920427&quot; protocolInfo=&quot;http-get:*:video/x-ms-wmv:*&quot;&gt;http://192.168.0.3:53168/content/ti/73DBA4DC-58B6-4754-857D-D35FA5E058D4*tf/*asf*asf*wmv2*wmav2*fv/3&lt;/res&gt;
    &lt;/item&gt;
    &lt;/DIDL-Lite&gt;</Result>
    5B
    <NumberReturned>3</NumberReturned>
    <TotalMatches>2</TotalMatches>
    <UpdateID>16</UpdateID>
    2D
    </u:BrowseResponse>
    </s:Body>
    </s:Envelope>
    
    GET /content/ti/73DBA4DC-58B6-4754-857D-D35FA5E058D4*tf/*asf*asf*wmv2*wmav2*fv/3?albumArt=true HTTP/1.1
    User-Agent: Xbox Live Client/2.0.12625.0
    Connection: Keep-alive
    Host:192.168.0.3
    
    HTTP/1.1 200 OK
    Content-Type: image/jpeg
    Date: Fri, 18 Mar 2011 23:52:16 GMT
    Last-Modified: Fri, 18 Mar 2011 23:52:16 GMT
    Expires: Sun, 17 Apr 2011 23:52:16 GMT
    Connection: keep-alive
    Accept-Ranges: bytes
    Content-Length: 2824
    EXT: 
    Cache-Control: no-cache
    transferMode.dlna.org: Interactive
    Server: Microsoft-Windows-NT/5.1 UPnP/1.0 UPnP-Device-Host/1.0 Microsoft-HTTPAPI/1.0
    

    where /content/ti/73DBA4DC-58B6-4754-857D-D35FA5E058D4*tf/*asf*asf*wmv2*wmav2*fv/3 is the object ID

  2. Log in to comment