mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-03 02:47:36 +01:00
Dont search for lyrics if tags are empty
This commit is contained in:
parent
506200d2ee
commit
4496760340
@ -199,7 +199,7 @@ void ContextView::SongChanged(const Song &song) {
|
||||
song_playing_ = song;
|
||||
song_ = song;
|
||||
SetSong(song);
|
||||
if (lyrics_.isEmpty() && action_show_lyrics_->isChecked()) {
|
||||
if (lyrics_.isEmpty() && action_show_lyrics_->isChecked() && !song.artist().isEmpty() && !song.title().isEmpty()) {
|
||||
lyrics_fetcher_->Clear();
|
||||
lyrics_id_ = lyrics_fetcher_->Search(song.effective_albumartist(), song.album(), song.title());
|
||||
}
|
||||
@ -680,7 +680,7 @@ void ContextView::ActionShowLyrics() {
|
||||
s.setValue("show_lyrics", action_show_lyrics_->isChecked());
|
||||
s.endGroup();
|
||||
SetSong(song_);
|
||||
if (lyrics_.isEmpty() && action_show_lyrics_->isChecked()) {
|
||||
if (lyrics_.isEmpty() && action_show_lyrics_->isChecked() && !song_.artist().isEmpty() && !song_.title().isEmpty()) {
|
||||
lyrics_fetcher_->Clear();
|
||||
lyrics_id_ = lyrics_fetcher_->Search(song_.artist(), song_.album(), song_.title());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user