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
|
app/git
|
||||||
*.code-workspace
|
*.code-workspace
|
||||||
releasenote.md
|
releasenote.md
|
||||||
|
app/yarn-error.log
|
||||||
|
|
|
@ -156,7 +156,7 @@ async function npCore(arg) {
|
||||||
if (flag && arg.artwork) {
|
if (flag && arg.artwork) {
|
||||||
media(arg.artwork, "image/png", "new");
|
media(arg.artwork, "image/png", "new");
|
||||||
} else if (flag && localStorage.getItem('complete-artwork')) {
|
} 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]], "*");
|
postMessage(["bmpImage", [await getUnknownAA(q), 0]], "*");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -211,6 +211,6 @@ async function getUnknownAA(q) {
|
||||||
if(!json.resultCount) {
|
if(!json.resultCount) {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
const data = json.results
|
const data = json.results[0].artworkUrl100
|
||||||
return data[0].artworkUrl100
|
return data.replace(/100x100/, '512x512')
|
||||||
}
|
}
|
|
@ -25,6 +25,7 @@ function np(mainWindow) {
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
e.sender.webContents.send('itunes-np', error)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
"vue": "^2.6.11"
|
"vue": "^2.6.11"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"itunes-nowplaying-mac": "0.3.1"
|
"itunes-nowplaying-mac": "git://github.com/cutls/itunes-nowplaying-mac"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chokidar": "^3.3.1",
|
"chokidar": "^3.3.1",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user