Nowplaying on macOS with an album artwork
This commit is contained in:
parent
25662e8736
commit
e36379de44
|
@ -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");
|
||||
|
|
|
@ -465,7 +465,7 @@ ipc.on('itunes', (e, args) => {
|
|||
if(platform=="darwin"){
|
||||
const nowplaying = require("itunes-nowplaying-mac")
|
||||
nowplaying.getRawData().then(function (value) {
|
||||
mainWindow.webContents.send('itunes-np', value);
|
||||
mainWindow.webContents.send('itunes-np', value);
|
||||
}).catch(function (error) {
|
||||
// 非同期処理失敗。呼ばれない
|
||||
console.log(error);
|
||||
|
|
7
app/package-lock.json
generated
7
app/package-lock.json
generated
|
@ -1601,9 +1601,8 @@
|
|||
"integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
|
||||
},
|
||||
"itunes-nowplaying-mac": {
|
||||
"version": "0.2.3",
|
||||
"resolved": "github:rinsuki/itunes-nowplaying-mac#25e1902f83a609c759e1c6be8d8a3162a280b87f",
|
||||
"optional": true
|
||||
"version": "github:rinsuki/itunes-nowplaying-mac#faf0f53c39d5f895eab9afadbac762914693a1fd",
|
||||
"from": "github:rinsuki/itunes-nowplaying-mac#pull/1/head"
|
||||
},
|
||||
"jimp": {
|
||||
"version": "0.2.28",
|
||||
|
@ -3373,4 +3372,4 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,8 +48,8 @@
|
|||
"vue": "^2.6.9"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"itunes-nowplaying-mac": "github:rinsuki/itunes-nowplaying-mac#pull/1/head",
|
||||
"nowplaying-node": "^0.1.3"
|
||||
"nowplaying-node": "^0.1.3",
|
||||
"itunes-nowplaying-mac": "github:rinsuki/itunes-nowplaying-mac#pull/1/head"
|
||||
},
|
||||
"build": {
|
||||
"productName": "TheDesk",
|
||||
|
@ -66,11 +66,14 @@
|
|||
]
|
||||
},
|
||||
"appx": {
|
||||
"identityName":"53491Cutls.TheDesk",
|
||||
"applicationId":"Cutls.TheDesk",
|
||||
"publisherDisplayName":"Cutls",
|
||||
"publisher":"CN=629757F5-A5EE-474F-9562-B304A89A9FD1",
|
||||
"languages":["JA-JP","EN-US"]
|
||||
"identityName": "53491Cutls.TheDesk",
|
||||
"applicationId": "Cutls.TheDesk",
|
||||
"publisherDisplayName": "Cutls",
|
||||
"publisher": "CN=629757F5-A5EE-474F-9562-B304A89A9FD1",
|
||||
"languages": [
|
||||
"JA-JP",
|
||||
"EN-US"
|
||||
]
|
||||
},
|
||||
"nsis": {
|
||||
"oneClick": false,
|
||||
|
|
Loading…
Reference in New Issue
Block a user