qs: use dbus name to fetch lyrics instead of pretty name

This commit is contained in:
2026-03-26 02:33:14 +01:00
parent 6d0416ecb6
commit 4334a6dfd0
3 changed files with 31 additions and 15 deletions
@@ -59,11 +59,11 @@ Singleton {
return ;
root.isFetchingLyrics = true;
if (!MediaService.currentPlayer?.identity) {
if (!MediaService.currentPlayer?.dbusName) {
root.isFetchingLyrics = false;
return ;
} else {
lyricsProcess.request(MediaService.currentPlayer.identity.toLowerCase());
lyricsProcess.request(MediaService.currentPlayer.dbusName);
}
}
@@ -229,7 +229,7 @@ Singleton {
}
const player = this.queuedPlayer.toLowerCase();
this.queuedPlayer = "";
this.command = ["lrcfetch", "fetch", "--player", player];
this.command = ["lrcfetch", "--player", player, "fetch"];
this.running = true;
}