fix notification bugging out (i hope)
This commit is contained in:
parent
112e42496a
commit
d2d32556e8
1 changed files with 5 additions and 2 deletions
|
@ -100,9 +100,12 @@ export default class playbackNotifications {
|
|||
console.log(join(app.getPath("temp"), `${a.songId}-${a.artwork.url.split("/").pop()}`));
|
||||
const dest = createWriteStream(join(app.getPath("temp"), `${a.songId}-${a.artwork.url.split("/").pop()}`));
|
||||
// @ts-ignore
|
||||
res.body.pipe(dest);
|
||||
let stream = res.body.pipe(dest);
|
||||
stream.on('finish', () =>{
|
||||
this.createNotification(a);
|
||||
});
|
||||
|
||||
});
|
||||
} else {
|
||||
fetch(a.artwork.url).then(async (blob) => {
|
||||
this._artworkImage[a.artwork.url] = nativeImage.createFromBuffer(Buffer.from(await blob.arrayBuffer()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue