mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
Fixing the parent path, the path to the resource would only work if
the filename was passed as the path, but we want to use the streaming methods, so we'll have to come up with something else
This commit is contained in:
parent
1dd36fd685
commit
4449ee2952
@ -275,7 +275,7 @@ func (cds *contentDirectoryService) doMediaFiles(tracks model.MediaFiles, basePa
|
||||
obj := upnpav.Object{
|
||||
ID: child.Id,
|
||||
Restricted: 1,
|
||||
ParentID: child.ParentID(),
|
||||
ParentID: basePath,
|
||||
Title: title,
|
||||
}
|
||||
|
||||
@ -297,7 +297,7 @@ func (cds *contentDirectoryService) doMediaFiles(tracks model.MediaFiles, basePa
|
||||
URL: (&url.URL{
|
||||
Scheme: "http",
|
||||
Host: host,
|
||||
Path: path.Join(resPath, child.Path),
|
||||
Path: child.Path,
|
||||
}).String(),
|
||||
ProtocolInfo: fmt.Sprintf("http-get:*:%s:%s", mimeType, dlna.ContentFeatures{
|
||||
SupportRange: false,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user