From ba08b8526713b5a6ab227b6169e0d40b593bbfee Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 25 Apr 2018 20:07:18 +0200 Subject: [PATCH] Only show lyrics for tracks with "vocal" tag --- pages/editor/filtersoundtracks/lyrics.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/editor/filtersoundtracks/lyrics.go b/pages/editor/filtersoundtracks/lyrics.go index 8ba341b6..82f68364 100644 --- a/pages/editor/filtersoundtracks/lyrics.go +++ b/pages/editor/filtersoundtracks/lyrics.go @@ -13,6 +13,10 @@ func MissingLyrics(ctx *aero.Context) string { ctx, "Soundtracks without lyrics", func(track *arn.SoundTrack) bool { + if !track.HasTag("vocal") { + return false + } + return !track.HasLyrics() }, func(track *arn.SoundTrack) string { @@ -27,6 +31,10 @@ func UnalignedLyrics(ctx *aero.Context) string { ctx, "Soundtracks with unaligned lyrics", func(track *arn.SoundTrack) bool { + if !track.HasTag("vocal") { + return false + } + return track.Lyrics.Native != "" && track.Lyrics.Romaji != "" && strings.Count(track.Lyrics.Native, "\n") != strings.Count(track.Lyrics.Romaji, "\n") }, nil,