Only show lyrics for tracks with "vocal" tag
This commit is contained in:
parent
2503d63b60
commit
ba08b85267
@ -13,6 +13,10 @@ func MissingLyrics(ctx *aero.Context) string {
|
|||||||
ctx,
|
ctx,
|
||||||
"Soundtracks without lyrics",
|
"Soundtracks without lyrics",
|
||||||
func(track *arn.SoundTrack) bool {
|
func(track *arn.SoundTrack) bool {
|
||||||
|
if !track.HasTag("vocal") {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
return !track.HasLyrics()
|
return !track.HasLyrics()
|
||||||
},
|
},
|
||||||
func(track *arn.SoundTrack) string {
|
func(track *arn.SoundTrack) string {
|
||||||
@ -27,6 +31,10 @@ func UnalignedLyrics(ctx *aero.Context) string {
|
|||||||
ctx,
|
ctx,
|
||||||
"Soundtracks with unaligned lyrics",
|
"Soundtracks with unaligned lyrics",
|
||||||
func(track *arn.SoundTrack) bool {
|
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")
|
return track.Lyrics.Native != "" && track.Lyrics.Romaji != "" && strings.Count(track.Lyrics.Native, "\n") != strings.Count(track.Lyrics.Romaji, "\n")
|
||||||
},
|
},
|
||||||
nil,
|
nil,
|
||||||
|
Loading…
Reference in New Issue
Block a user