mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
dlna icons fix
thx @YouROK
This commit is contained in:
@@ -42,16 +42,23 @@ func Start() {
|
||||
StallEventSubscribe: true,
|
||||
Icons: []dms.Icon{
|
||||
dms.Icon{
|
||||
Width: 32,
|
||||
Height: 32,
|
||||
Depth: 32,
|
||||
Width: 48,
|
||||
Height: 48,
|
||||
Depth: 24,
|
||||
Mimetype: "image/jpeg",
|
||||
ReadSeeker: bytes.NewReader(template.Dlnaicon48jpg),
|
||||
},
|
||||
dms.Icon{
|
||||
Width: 48,
|
||||
Height: 48,
|
||||
Depth: 24,
|
||||
Mimetype: "image/png",
|
||||
ReadSeeker: bytes.NewReader(template.Favicon32x32png),
|
||||
ReadSeeker: bytes.NewReader(template.Dlnaicon48png),
|
||||
},
|
||||
dms.Icon{
|
||||
Width: 192,
|
||||
Height: 192,
|
||||
Depth: 32,
|
||||
Depth: 24,
|
||||
Mimetype: "image/png",
|
||||
ReadSeeker: bytes.NewReader(template.Androidchrome192x192png),
|
||||
},
|
||||
|
||||
@@ -198,8 +198,8 @@ func getObjFromTorrent(path, parent, host string, torr *torr.Torrent, file *stat
|
||||
item.Res = append(item.Res, upnpav.Resource{
|
||||
URL: getLink(host, pathPlay),
|
||||
ProtocolInfo: fmt.Sprintf("http-get:*:%s:%s", mime, dlna.ContentFeatures{
|
||||
SupportTimeSeek: true,
|
||||
SupportRange: true,
|
||||
SupportTimeSeek: true,
|
||||
}.String()),
|
||||
Size: uint64(file.Length),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user