mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Add more fallback options for main tags
This commit is contained in:
parent
3a4e2523dd
commit
506899b083
1 changed files with 3 additions and 3 deletions
|
@ -53,9 +53,9 @@ type baseMetadata struct {
|
|||
tags map[string]string
|
||||
}
|
||||
|
||||
func (m *baseMetadata) Title() string { return m.getTag("title", "sort_name") }
|
||||
func (m *baseMetadata) Album() string { return m.getTag("album", "sort_album") }
|
||||
func (m *baseMetadata) Artist() string { return m.getTag("artist", "sort_artist") }
|
||||
func (m *baseMetadata) Title() string { return m.getTag("title", "sort_name", "titlesort") }
|
||||
func (m *baseMetadata) Album() string { return m.getTag("album", "sort_album", "albumsort") }
|
||||
func (m *baseMetadata) Artist() string { return m.getTag("artist", "sort_artist", "artistsort") }
|
||||
func (m *baseMetadata) AlbumArtist() string { return m.getTag("album_artist", "albumartist") }
|
||||
func (m *baseMetadata) SortTitle() string { return m.getSortTag("", "title", "name") }
|
||||
func (m *baseMetadata) SortAlbum() string { return m.getSortTag("", "album") }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue