diff options
author | liam4 <towerofnix@gmail.com> | 2017-06-21 17:10:26 -0300 |
---|---|---|
committer | liam4 <towerofnix@gmail.com> | 2017-06-21 17:10:26 -0300 |
commit | 84a48215f19d271cfce88439a1300817f0666e85 (patch) | |
tree | c59f6e0e21a11bb056fadf1706a5fcf681e8ad4a /src/http-music.js | |
parent | 8107e3f49ef959061d7fe0e04ef2f6eda01df354 (diff) |
Various updates.. maybe finished??
Diffstat (limited to 'src/http-music.js')
-rwxr-xr-x | src/http-music.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/http-music.js b/src/http-music.js index ed79878..68bfa77 100755 --- a/src/http-music.js +++ b/src/http-music.js @@ -224,17 +224,8 @@ setupDefaultPlaylist('./playlist.json') return } - let downloader - if (downloaderType === 'http') { - console.log("Using HTTP downloader.") - downloader = downloaders.makeHTTPDownloader() - } else if (downloaderType === 'youtube') { - console.log("Using YouTube downloader.") - downloader = downloaders.makeYouTubeDownloader() - } else if (downloaderType === 'local') { - console.log("Using local file downloader.") - downloader = downloaders.makeLocalDownloader() - } else { + let downloader = downloaders.getDownloader(downloaderType) + if (!downloader) { console.error("Invalid downloader type: " + downloaderType) return } |