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,8 +100,11 @@ export default class playbackNotifications {
|
||||||
console.log(join(app.getPath("temp"), `${a.songId}-${a.artwork.url.split("/").pop()}`));
|
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()}`));
|
const dest = createWriteStream(join(app.getPath("temp"), `${a.songId}-${a.artwork.url.split("/").pop()}`));
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
res.body.pipe(dest);
|
let stream = res.body.pipe(dest);
|
||||||
this.createNotification(a);
|
stream.on('finish', () =>{
|
||||||
|
this.createNotification(a);
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
fetch(a.artwork.url).then(async (blob) => {
|
fetch(a.artwork.url).then(async (blob) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue