feat(server): make appending subtitle to song title configurable

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan
2025-03-05 12:36:09 -08:00
parent 8ab2a11d22
commit dc4e091622
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -93,10 +93,10 @@ type MediaFile struct {
}
func (mf MediaFile) FullTitle() string {
if mf.Tags[TagSubtitle] == nil {
return mf.Title
if conf.Server.AppendSubtitle && mf.Tags[TagSubtitle] != nil {
return fmt.Sprintf("%s (%s)", mf.Title, mf.Tags[TagSubtitle][0])
}
return fmt.Sprintf("%s (%s)", mf.Title, mf.Tags[TagSubtitle][0])
return mf.Title
}
func (mf MediaFile) ContentType() string {