Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
fix(lyrics): replace with the default message instead stuck with the …
Browse files Browse the repository at this point in the history
…old lyrics
  • Loading branch information
Howard Ju committed Apr 3, 2019
1 parent a6bdc9b commit 3eb83f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controller/player-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ class XiamiPlayer {
details && this.notify(songName, singers, albumName, albumLogo);
lyric && this.loadLyrics(lyric);
albumLogo && this.lyricsController.window.webContents.send('albumUpdate', albumLogo);
} else {
this.lyrics.load('客官,小虾米找不到你要的歌词哦');
}
});
});
Expand All @@ -298,7 +300,7 @@ ${Locale.NOTIFICATION_ALBUM}: ${albumName}`;
loadLyrics(url) {
this.lyrics.load('');
download(url).then(buffer => {
this.lyrics.load(buffer);
buffer ? this.lyrics.load(buffer) : this.lyrics.load('客官,小虾米找不到你要的歌词哦');
});
}

Expand Down

0 comments on commit 3eb83f0

Please sign in to comment.