Opened 14 years ago

Closed 14 years ago

#2724 closed defect (fixed)

Bad parentId in items causes some UPnP clients to fail (netgear mp115)

Reported by: mikerice1969 at hotmail dot com Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: 0.20
Severity: medium Keywords: upnp
Cc: Ticket locked: no


Here is an example.

REQUEST for RecTv?/0:

<?xml version="1.0" encoding="utf-8"?>

<s:Envelope s:encodingStyle="" xmlns:s="">


<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@contentUri,res@duration,res@bitrate,res@nrAudioChannels,res@bitsPerSample,res@protocolInfo,res@resolution,res@sampleFrequency,res@size</Filter> <StartingIndex?>0</StartingIndex?> <RequestedCount?>10</RequestedCount?> <SortCriteria? />





<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.

Attachments (1)

upnp_par.txt (1.1 KB) - added by mikerice1969 at hotmail dot com 14 years ago.
UPnP parentId patch

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by mikerice1969 at hotmail dot com

Attachment: upnp_par.txt added

UPnP parentId patch

comment:1 Changed 14 years ago by greg

Resolution: fixed
Status: newclosed

(In [12241])

Closes #2724 and fixes the ObjectID to work with the more "Strict"

upnp clients out there :)

Note: See TracTickets for help on using tickets.