mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix dlna progress reporting for wd tv
This commit is contained in:
parent
134dc3b68b
commit
12d47e1e94
@ -635,15 +635,25 @@ namespace MediaBrowser.Dlna.PlayTo
|
|||||||
}
|
}
|
||||||
|
|
||||||
XElement uPnpResponse;
|
XElement uPnpResponse;
|
||||||
|
|
||||||
|
// Handle different variations sent back by devices
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
uPnpResponse = XElement.Parse(trackString);
|
uPnpResponse = XElement.Parse(trackString);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
_logger.ErrorException("Unable to parse xml {0}", ex, trackString);
|
// first try to add a root node with a dlna namesapce
|
||||||
return new Tuple<bool, uBaseObject>(true, null);
|
try
|
||||||
|
{
|
||||||
|
uPnpResponse = XElement.Parse("<data xmlns:dlna=\"urn:schemas-dlna-org:device-1-0\">" + trackString + "</data>");
|
||||||
|
uPnpResponse = uPnpResponse.Descendants().First();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
_logger.ErrorException("Unable to parse xml {0}", ex, trackString);
|
||||||
|
return new Tuple<bool, uBaseObject>(true, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var e = uPnpResponse.Element(uPnpNamespaces.items);
|
var e = uPnpResponse.Element(uPnpNamespaces.items);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user