Some bugs, quality up on #208
This commit is contained in:
parent
ee6cbf922e
commit
2d7d127266
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -23,3 +23,4 @@ app/view/es-AR
|
|||
app/git
|
||||
*.code-workspace
|
||||
releasenote.md
|
||||
app/yarn-error.log
|
||||
|
|
|
@ -156,7 +156,7 @@ async function npCore(arg) {
|
|||
if (flag && arg.artwork) {
|
||||
media(arg.artwork, "image/png", "new");
|
||||
} else if (flag && localStorage.getItem('complete-artwork')) {
|
||||
var q = arg.artist + ' ' + arg.album.name + ' ' + arg.name
|
||||
var q = arg.artist + ' ' + arg.album.name + ' ' + arg.name;
|
||||
postMessage(["bmpImage", [await getUnknownAA(q), 0]], "*");
|
||||
}
|
||||
}
|
||||
|
@ -211,6 +211,6 @@ async function getUnknownAA(q) {
|
|||
if(!json.resultCount) {
|
||||
return []
|
||||
}
|
||||
const data = json.results
|
||||
return data[0].artworkUrl100
|
||||
const data = json.results[0].artworkUrl100
|
||||
return data.replace(/100x100/, '512x512')
|
||||
}
|
|
@ -25,6 +25,7 @@ function np(mainWindow) {
|
|||
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
e.sender.webContents.send('itunes-np', error)
|
||||
}
|
||||
} else {
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
"vue": "^2.6.11"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"itunes-nowplaying-mac": "0.3.1"
|
||||
"itunes-nowplaying-mac": "git://github.com/cutls/itunes-nowplaying-mac"
|
||||
},
|
||||
"devDependencies": {
|
||||
"chokidar": "^3.3.1",
|
||||
|
|
Loading…
Reference in New Issue
Block a user