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:
Matteo Pietro Dazzi 2020-06-16 15:56:02 +02:00 committed by Nick Craig-Wood
parent d8144a7e84
commit d805e63f7d

View File

@ -77,10 +77,12 @@ func (cds *contentDirectoryService) cdsObjectToUpnpavObject(cdsObject object, fi
}
if fileInfo.IsDir() {
defaultChildCount := 1
obj.Class = "object.container.storageFolder"
obj.Title = fileInfo.Name()
return upnpav.Container{
Object: obj,
Object: obj,
ChildCount: &defaultChildCount,
}, nil
}