Skip to content

Commit

Permalink
Merge pull request #75 from gnehs/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
gnehs authored Sep 28, 2018
2 parents cd0ec86 + 600dd11 commit 8667048
Show file tree
Hide file tree
Showing 12 changed files with 746 additions and 311 deletions.
6 changes: 6 additions & 0 deletions config-simple.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
"instantUpgradeProcess": false,
"debug": false
},
"share": {
"secret": "abcd123",
"issuer": "PokaPlayer"
},
"DSM": {
"enabled": true,
"protocol": "https",
"host": "192.168.x.x",
"port": 5000,
Expand All @@ -21,6 +26,7 @@
"dbType": "fs"
},
"Netease2": {
"enabled": true,
"server": "YOUR_NeteaseCloudMusicApi_SERVER",
"isPremium": true,
"topPlaylist": {
Expand Down
2 changes: 1 addition & 1 deletion dataModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fs.readdir(__dirname + "/dataModule", (err, files) => {
};
let enabled =
moduleData.active.indexOf("onLoaded") > -1 ? await _module.onLoaded() : true;
if (enabled) moduleList[moduleData.name] = moduleData;
if (enabled && _module.enabled) moduleList[moduleData.name] = moduleData;
}
});
});
Expand Down
Loading

0 comments on commit 8667048

Please sign in to comment.