Skip to content

Commit

Permalink
Ignore empty lyrics
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed May 3, 2022
1 parent 3358e6f commit 3a674e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/recognizer/provider/aud_d/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ impl AudD {
}

if let Some(lyrics_data) = data.lyrics_data {
song_builder.lyrics(&lyrics_data.lyrics);
if !lyrics_data.lyrics.is_empty() {
song_builder.lyrics(&lyrics_data.lyrics);
}
}

if let Some(album_image) = album_images.first() {
Expand Down

0 comments on commit 3a674e4

Please sign in to comment.