mirror of
https://github.com/rclone/rclone.git
synced 2025-12-21 10:43:37 +00:00
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:
committed by
Nick Craig-Wood
parent
d8144a7e84
commit
d805e63f7d
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user