This commit is contained in:
Cutls 2019-03-20 20:08:33 +09:00
parent e36379de44
commit cf827e7c25
2 changed files with 9 additions and 5 deletions

View File

@ -131,11 +131,14 @@ function nowplaying(mode){
var content="#NowPlaying {song} / {album} / {artist}\n{url}";
}
var flag=localStorage.getItem("artwork");
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]);
if(arg.win){
if(flag && arg.path){
media(arg.path,"image/png","new");
}
}else{
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);

View File

@ -492,6 +492,7 @@ ipc.on('itunes', (e, args) => {
}
var value={
win:true,
name:myAIMP.getTitle(),
artist:myAIMP.getArtist(),
album:myAIMP.getAlbum(),