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 GitHub
parent 2c4f7b61c1
commit 62650a3eb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
}