diff --git a/app/js/ui/spotify.js b/app/js/ui/spotify.js index 408db5ff..646e6e4a 100644 --- a/app/js/ui/spotify.js +++ b/app/js/ui/spotify.js @@ -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); diff --git a/app/main.js b/app/main.js index 918b5040..dc169bbc 100644 --- a/app/main.js +++ b/app/main.js @@ -492,6 +492,7 @@ ipc.on('itunes', (e, args) => { } var value={ + win:true, name:myAIMP.getTitle(), artist:myAIMP.getArtist(), album:myAIMP.getAlbum(),