diff --git a/server/dlna/dlna.go b/server/dlna/dlna.go index 062d82c..928e97a 100644 --- a/server/dlna/dlna.go +++ b/server/dlna/dlna.go @@ -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), }, diff --git a/server/dlna/list.go b/server/dlna/list.go index fdb8260..2ad1ddc 100644 --- a/server/dlna/list.go +++ b/server/dlna/list.go @@ -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), }) diff --git a/server/go.mod b/server/go.mod index 63a331e..71857f9 100644 --- a/server/go.mod +++ b/server/go.mod @@ -3,7 +3,7 @@ module server go 1.17 replace ( - github.com/anacrolix/dms v1.2.2 => github.com/tsynik/dms v0.0.0-20210908015708-af476cd29429 + github.com/anacrolix/dms v1.2.2 => github.com/tsynik/dms v0.0.0-20210908102802-d5d0f568fcbb github.com/anacrolix/torrent v1.30.3 => github.com/tsynik/torrent v1.2.7-0.20210907192509-2141ede9aa09 ) diff --git a/server/go.sum b/server/go.sum index b048d17..d127ca8 100644 --- a/server/go.sum +++ b/server/go.sum @@ -659,8 +659,8 @@ github.com/tinylib/msgp v1.1.1/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDW github.com/tinylib/msgp v1.1.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE= github.com/tinylib/msgp v1.1.5/go.mod h1:eQsjooMTnV42mHu917E26IogZ2930nFyBQdofk10Udg= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tsynik/dms v0.0.0-20210908015708-af476cd29429 h1:oZq/6B3kBTOgUxmvYaqVA72qkMQXA5olChHvRuGtiME= -github.com/tsynik/dms v0.0.0-20210908015708-af476cd29429/go.mod h1:1GqMUla/yTV3GFjpKMpmdntkTl6aslGK3jfIksEwIdI= +github.com/tsynik/dms v0.0.0-20210908102802-d5d0f568fcbb h1:Oc8uYDfJzQE21RRXw3DJnDYCoKxr1AmjL/yxKPP69/Y= +github.com/tsynik/dms v0.0.0-20210908102802-d5d0f568fcbb/go.mod h1:1GqMUla/yTV3GFjpKMpmdntkTl6aslGK3jfIksEwIdI= github.com/tsynik/torrent v1.2.7-0.20210907192509-2141ede9aa09 h1:GHhNKxddZiYrWeiXqMQiPKcSIXKF+o/w1wrqHOgOFrk= github.com/tsynik/torrent v1.2.7-0.20210907192509-2141ede9aa09/go.mod h1:E9gvoHzc58EtTudJbzZ2Ho7SKDCYk84734hB9ztBJS4= github.com/ttacon/chalk v0.0.0-20160626202418-22c06c80ed31/go.mod h1:onvgF043R+lC5RZ8IT9rBXDaEDnpnw/Cl+HFiw+v/7Q= diff --git a/server/web/pages/template/pages/dlnaicon-48.jpg b/server/web/pages/template/pages/dlnaicon-48.jpg new file mode 100644 index 0000000..da40816 Binary files /dev/null and b/server/web/pages/template/pages/dlnaicon-48.jpg differ diff --git a/server/web/pages/template/pages/dlnaicon-48.png b/server/web/pages/template/pages/dlnaicon-48.png new file mode 100644 index 0000000..22171bc Binary files /dev/null and b/server/web/pages/template/pages/dlnaicon-48.png differ diff --git a/web/public/dlnaicon-48.jpg b/web/public/dlnaicon-48.jpg new file mode 100644 index 0000000..da40816 Binary files /dev/null and b/web/public/dlnaicon-48.jpg differ diff --git a/web/public/dlnaicon-48.png b/web/public/dlnaicon-48.png new file mode 100644 index 0000000..22171bc Binary files /dev/null and b/web/public/dlnaicon-48.png differ