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