forked from TrueCloudLab/rclone
serve dlna: Fix file list on Samsung Series 6+ TVs
This fixes the command "serve dlna" in order correctly show the list of files on Samsung TV models starting from Series 6.
This commit is contained in:
parent
2c4f7b61c1
commit
62650a3eb3
1 changed files with 3 additions and 1 deletions
|
@ -77,10 +77,12 @@ func (cds *contentDirectoryService) cdsObjectToUpnpavObject(cdsObject object, fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if fileInfo.IsDir() {
|
if fileInfo.IsDir() {
|
||||||
|
defaultChildCount := 1
|
||||||
obj.Class = "object.container.storageFolder"
|
obj.Class = "object.container.storageFolder"
|
||||||
obj.Title = fileInfo.Name()
|
obj.Title = fileInfo.Name()
|
||||||
return upnpav.Container{
|
return upnpav.Container{
|
||||||
Object: obj,
|
Object: obj,
|
||||||
|
ChildCount: &defaultChildCount,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue