[mythtv-commits] Ticket #2724: Bad parentId in items causes some UPnP clients to fail (netgear mp115)

MythTV mythtv at cvs.mythtv.org
Fri Nov 24 23:15:36 UTC 2006


#2724: Bad parentId in items causes some UPnP clients to fail (netgear mp115)
---------------------------------------------+------------------------------
 Reporter:  mikerice1969 at hotmail dot com  |       Owner:  ijr    
     Type:  defect                           |      Status:  new    
 Priority:  minor                            |   Milestone:  unknown
Component:  mythtv                           |     Version:  0.20   
 Severity:  medium                           |  
---------------------------------------------+------------------------------
 Here is an example.

 REQUEST for RecTv/0:

 <?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>RecTv/0</ObjectID>
           <BrowseFlag>BrowseDirectChildren</BrowseFlag>
 <Filter>dc:title,dc:date,upnp:artist,upnp:album,upnp:genre,dc:creator,upnp:originalTrackNumber,upnp:albumArtURI,upnp:blurbURI,upnp:icon,res,res at contentUri,res at duration,res at bitrate,res at nrAudioChannels,res at bitsPerSample,res at protocolInfo,res at resolution,res at sampleFrequency,res at size</Filter>
           <StartingIndex>0</StartingIndex>
           <RequestedCount>10</RequestedCount>
           <SortCriteria />
        </u:Browse>
     </s:Body>
    </s:Envelope>

 RESPONSE:

 <item id="RecTv/0/item1059_20061109180000.mpg"
 parentID="RecTv"
 restricted="0" >
 <dc:title>Stargate SG-1: Out of Mind</dc:title>
 <upnp:class>object.item.videoItem</upnp:class>
 <upnp:longDescription>O&apos;Neill awakens in a future world in which the
 team is long dead.</upnp:longDescription>
 <upnp:genre>Science fiction</upnp:genre>
 <dc:description>Out of Mind</dc:description>
 ...

 Notice parentID is "RecTv" not "RecTv/0".  The parent stored in the
 request is the parent of the ObjectId, not the items we are creating.
 Apparently some clients do not care about the parentID but the Netgear
 mp115 won't play the content.  Patch attached.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/2724>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list