some fix
This commit is contained in:
parent
e36379de44
commit
cf827e7c25
|
@ -131,12 +131,15 @@ function nowplaying(mode){
|
||||||
var content="#NowPlaying {song} / {album} / {artist}\n{url}";
|
var content="#NowPlaying {song} / {album} / {artist}\n{url}";
|
||||||
}
|
}
|
||||||
var flag=localStorage.getItem("artwork");
|
var flag=localStorage.getItem("artwork");
|
||||||
|
if(arg.win){
|
||||||
if(flag && arg.path){
|
if(flag && arg.path){
|
||||||
media(arg.path,"image/png","new");
|
media(arg.path,"image/png","new");
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
if(flag && arg.artworks[0].path){
|
if(flag && arg.artworks[0].path){
|
||||||
ipc.send('bmp-image', [arg.artworks[0].path,0]);
|
ipc.send('bmp-image', [arg.artworks[0].path,0]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
var regExp = new RegExp("{song}", "g");
|
var regExp = new RegExp("{song}", "g");
|
||||||
content = content.replace(regExp, arg.name);
|
content = content.replace(regExp, arg.name);
|
||||||
var regExp = new RegExp("{album}", "g");
|
var regExp = new RegExp("{album}", "g");
|
||||||
|
|
|
@ -492,6 +492,7 @@ ipc.on('itunes', (e, args) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
var value={
|
var value={
|
||||||
|
win:true,
|
||||||
name:myAIMP.getTitle(),
|
name:myAIMP.getTitle(),
|
||||||
artist:myAIMP.getArtist(),
|
artist:myAIMP.getArtist(),
|
||||||
album:myAIMP.getAlbum(),
|
album:myAIMP.getAlbum(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user