Nowplaying on macOS with an album artwork

This commit is contained in:
cutls
2019-03-20 04:02:59 -07:00
parent 25662e8736
commit e36379de44
4 changed files with 17 additions and 12 deletions

View File

@@ -134,6 +134,9 @@ function nowplaying(mode){
if(flag && arg.path){
media(arg.path,"image/png","new");
}
if(flag && arg.artworks[0].path){
ipc.send('bmp-image', [arg.artworks[0].path,0]);
}
var regExp = new RegExp("{song}", "g");
content = content.replace(regExp, arg.name);
var regExp = new RegExp("{album}", "g");