Can't stream non-file:// files using UPNP
@hadess
Submitted by Bastien Nocera Link to original bug (#576023)
Description
Originally at: https://bugzilla.redhat.com/show_bug.cgi?id=486817
That's the code: uri = self.shell.props.db.entry_get(entry, rhythmdb.PROP_LOCATION) if uri.startswith("file://"): location = unicode(urllib.unquote(uri[len("file://"):]))
# add a fake resource for the moment
res = DIDLLite.Resource(location, 'http-get:*:%s:*' % mimetype)
if size > 0:
res.size = size
if self.duration > 0:
res.duration = self.duration
if bitrate > 0:
res.bitrate = str(bitrate)
item.res.append(res)
We should get the local fuse path from the file if it's available, and not add the entry if we can't get a local file for the uri.