From 506899b0831412868e7cc27dbc46f4974793c642 Mon Sep 17 00:00:00 2001 From: Deluan Date: Sat, 5 Sep 2020 19:57:58 -0400 Subject: [PATCH] Add more fallback options for main tags --- scanner/metadata/metadata.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scanner/metadata/metadata.go b/scanner/metadata/metadata.go index 67ec9a424..208bfdf6d 100644 --- a/scanner/metadata/metadata.go +++ b/scanner/metadata/metadata.go @@ -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") }