mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
feat(server): make appending subtitle to song title configurable
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
8ab2a11d22
commit
dc4e091622
2 changed files with 5 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue