add DLNA server name and debug log options to web

This commit is contained in:
nikk gitanes
2022-05-25 10:09:00 +03:00
parent 3af0566731
commit 50c0860b9b
8 changed files with 36 additions and 2 deletions

View File

@@ -140,6 +140,11 @@ func onBrowseMeta(path string, rootObjectPath string, host, userAgent string) (r
func getDefaultFriendlyName() string {
logger := log.Default.WithNames("dlna")
if settings.BTsets.FriendlyName != "" {
return settings.BTsets.FriendlyName
}
ret := "TorrServer"
userName := ""
user, err := user.Current()

View File

@@ -28,7 +28,8 @@ type BTSets struct {
EnableDebug bool // print logs
// DLNA
EnableDLNA bool
EnableDLNA bool
FriendlyName string
// BT Config
EnableIPv6 bool