gofmt -l -w .

This commit is contained in:
nikk gitanes
2022-05-13 23:20:50 +03:00
parent abdba30efd
commit e67376fb9c
2 changed files with 16 additions and 16 deletions

View File

@@ -14,8 +14,8 @@ import (
"github.com/anacrolix/dms/dlna/dms" "github.com/anacrolix/dms/dlna/dms"
"github.com/anacrolix/log" "github.com/anacrolix/log"
"server/settings" "server/settings"
"server/web/pages/template" "server/web/pages/template"
) )
var dmsServer *dms.Server var dmsServer *dms.Server
@@ -67,21 +67,21 @@ func Start() {
StallEventSubscribe: true, StallEventSubscribe: true,
Icons: []dms.Icon{ Icons: []dms.Icon{
dms.Icon{ dms.Icon{
Width: 48, Width: 48,
Height: 48, Height: 48,
Depth: 24, Depth: 24,
Mimetype: "image/png", Mimetype: "image/png",
Bytes: template.Dlnaicon48png, Bytes: template.Dlnaicon48png,
}, },
dms.Icon{ dms.Icon{
Width: 120, Width: 120,
Height: 120, Height: 120,
Depth: 24, Depth: 24,
Mimetype: "image/png", Mimetype: "image/png",
Bytes: template.Dlnaicon120png, Bytes: template.Dlnaicon120png,
}, },
}, },
LogHeaders: settings.BTsets.EnableDebug, LogHeaders: settings.BTsets.EnableDebug,
NotifyInterval: 30 * time.Second, NotifyInterval: 30 * time.Second,
AllowedIpNets: func() []*net.IPNet { AllowedIpNets: func() []*net.IPNet {
var nets []*net.IPNet var nets []*net.IPNet

View File

@@ -31,9 +31,9 @@ func init() {
{"audio/opus", ".opus"}, {"audio/opus", ".opus"},
{"audio/weba", ".weba"}, {"audio/weba", ".weba"},
{"audio/x-ape", ".ape"}, {"audio/x-ape", ".ape"},
// {"audio/x-dsd", ".dsd"}, // {"audio/x-dsd", ".dsd"},
// {"audio/x-dff", ".dff"}, // {"audio/x-dff", ".dff"},
// {"audio/x-dsf", ".dsf"}, // {"audio/x-dsf", ".dsf"},
{"audio/x-wav", ".wav"}, {"audio/x-wav", ".wav"},
{"video/dv", ".dif,.dv"}, {"video/dv", ".dif,.dv"},
{"video/fli", ".fli"}, {"video/fli", ".fli"},