Skip to content

Commit

Permalink
resolve #15
Browse files Browse the repository at this point in the history
It's actually resolved in moshfeu/youtube-mp3-downloader@9c33a4a
  • Loading branch information
moshfeu committed Jan 10, 2019
1 parent 5e7097e commit 6335041
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "y2mp3",
"appname": "y2mp3",
"productName": "y2mp3",
"version": "1.3.0",
"version": "1.3.1",
"main": "main.js",
"author": {
"name": "MosheF",
Expand Down
7 changes: 5 additions & 2 deletions src/services/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ export const downloader = new YoutubeMp3Downloader({
.on('gettingInfo', videoId => store.gettingInfo(videoId))
.on('progress', ({videoId, progress}) => store.progress({videoId, progress}))
.on('finished', (err, { videoId }) => store.finished(err, { videoId }))
.on('error', () => {
alert('Sorry, something went wrong.\nPlease contact the author using "support" menu and just copy / paste the error:\n${err}\n Thanks!');
.on('error', err => {
alert(`Sorry, something went wrong.\nPlease contact the author using "support" menu and just copy / paste the error:\n${err}\n Thanks!`);
console.error(err);
});

export function setFfmpegPath() {
Expand Down Expand Up @@ -73,3 +74,5 @@ export function download(videoOrVideos: string | string[]) {
});
}
}

console.log

0 comments on commit 6335041

Please sign in to comment.