diff options
author | liam4 <towerofnix@gmail.com> | 2017-07-21 22:27:34 -0300 |
---|---|---|
committer | liam4 <towerofnix@gmail.com> | 2017-07-21 22:27:34 -0300 |
commit | b6e90e8f380569803b9a83f8997159b34d64e501 (patch) | |
tree | b2ac9c18415301e90dc9980255ea48e54a87b9f7 /src/downloaders.js | |
parent | 13ec7f5c5408c787e8e424a79ffeea281b044b6f (diff) |
Make some error handling for YouTube downloads
Diffstat (limited to 'src/downloaders.js')
-rw-r--r-- | src/downloaders.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/downloaders.js b/src/downloaders.js index 0e2b1bb..04838c2 100644 --- a/src/downloaders.js +++ b/src/downloaders.js @@ -40,6 +40,7 @@ function makeYouTubeDownloader() { return promisifyProcess(spawn('youtube-dl', opts)) .then(() => tempDir + '/dl.mp3') + .catch(err => false) } } |