diff --git a/index.js b/index.js index 0f44a54..1ec8395 100755 --- a/index.js +++ b/index.js @@ -28,10 +28,8 @@ live_playlists.prototype.onVolumioStart = function () { live_playlists.prototype.onStart = function () { var self = this; - var defer = libQ.defer(); self.addToBrowseSources(); - - return defer.promise; + return libQ.resolve(); } live_playlists.prototype.handleBrowseUri = function (curUri) { @@ -362,6 +360,7 @@ live_playlists.prototype.getTrackInfo = function(path){ live_playlists.prototype.onStop = function () { var self = this; //Perform stop tasks here + return libQ.resolve(); }; live_playlists.prototype.onRestart = function () { diff --git a/install.sh b/install.sh index 9bb5108..10c46b9 100755 --- a/install.sh +++ b/install.sh @@ -8,4 +8,4 @@ chown volumio:volumio /data/configuration/music_service/live_playlists/config.js echo "Install NodeJS dependencies" ( cd /data/plugins/music_service/live_playlists && npm install ) -echo "plugin install end" \ No newline at end of file +echo "plugininstallend" \ No newline at end of file