Skip to content

Commit

Permalink
updated source code of autostart
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghembs committed Nov 20, 2018
1 parent ac14014 commit f64aee9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion plugins/miscellanea/autostart/UIConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"element": "input",
"doc": "TRANSLATE.AUTOSTART_DELAY_DOC",
"label": "TRANSLATE.AUTOSTART_DELAY",
"value": 10000
"value": 20000
}
]
}
Expand Down
Binary file modified plugins/miscellanea/autostart/autostart.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion plugins/miscellanea/autostart/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"autostartDelay": {
"type": "number",
"value": 10000
"value": 20000
}
}
4 changes: 2 additions & 2 deletions plugins/miscellanea/autostart/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ autostart.prototype.onVolumioStart = function () {

var playFromLastPosition = config.get('playFromLastPosition') || false;
var lastPosition = config.get('lastPosition') || -1;
var autostartDelay = config.get('autostartDelay') || 10000;
var autostartDelay = config.get('autostartDelay') || 20000;

setTimeout(function () {
self.logger.info('AutoStart - getting queue');
Expand Down Expand Up @@ -101,7 +101,7 @@ autostart.prototype.getUIConfig = function () {

autostart.prototype.setUIConfig = function (data) {
var playFromLastPosition = data['playFromLastPosition'] || false;
var autostartDelay = data['autostartDelay'] || 10000;
var autostartDelay = data['autostartDelay'] || 20000;
config.set('playFromLastPosition', playFromLastPosition);
config.set('autostartDelay', autostartDelay);
this.commandRouter.pushToastMessage('success', 'Autostart', this.commandRouter.getI18nString("COMMON.CONFIGURATION_UPDATE_DESCRIPTION"));
Expand Down
8 changes: 4 additions & 4 deletions plugins/miscellanea/autostart/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "autostart",
"version": "1.1.1",
"description": "Ths plugin starts the first entry in the queue after rebooting volumio.",
"version": "1.1.2",
"description": "Ths plugin starts the first entry in the queue or from the last played position after rebooting volumio.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand All @@ -12,10 +12,10 @@
"prettyName": "AutoStart",
"icon": "fa-play-circle-o",
"plugin_type": "miscellanea",
"boot_priority": 100
"boot_priority": 10
},
"dependencies": {
"kew": "^0.7.0",
"v-conf": "^1.4.0"
"v-conf": "^1.4.2"
}
}

0 comments on commit f64aee9

Please sign in to comment.