mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
Update docs
This commit is contained in:
parent
d697c7ab4a
commit
2eef558ba3
@ -69,6 +69,14 @@ mStream automatically makes a DB file in the folder of the directory it is run f
|
||||
mstream -d /path/to/mstream.db
|
||||
```
|
||||
|
||||
## DB Scan Interval
|
||||
|
||||
By default, mStream will scan all your files every 24 to update the DB. If you want to change that you can set the interval with `-E`. The interval can only be set in hours. Set this to 0 to turn off interval scanning
|
||||
|
||||
```
|
||||
mstream -E 2
|
||||
```
|
||||
|
||||
## Automatically setup port forwarding
|
||||
|
||||
mStream can try to automatically setup port forwarding via upnp. Use the '-t' command to try to setup port forwarding.
|
||||
|
||||
@ -8,7 +8,8 @@ Using a JSON config with mStream allows for more advanced configurations. This
|
||||
"userinterface":"public",
|
||||
"secret": "b6j7j5e6u5g36ubn536uyn536unm5m67u5365vby435y54ymn",
|
||||
"database_plugin":{
|
||||
"dbPath":"/path/to/loki.db"
|
||||
"dbPath":"/path/to/loki.db",
|
||||
"interval": 2
|
||||
},
|
||||
"albumArtDir": "/media/album-art",
|
||||
"folders": {
|
||||
@ -55,11 +56,12 @@ Sets the secret key used for the login system. If this is not set, mStream will
|
||||
|
||||
## Database
|
||||
|
||||
This option is a relic of the past when mStream also supported SQLite. Right now only the path can be set. This defaults to the current working directory
|
||||
Set DB options here. You can set the path for the DB and the scan interval. Scan interval is set in hours. If you want to use a decimal for the scan interval, you need to put quotes around it
|
||||
|
||||
```
|
||||
"database_plugin":{
|
||||
"dbPath":"/path/to/loki.db"
|
||||
"dbPath":"/path/to/loki.db",
|
||||
"interval": "1.5"
|
||||
},
|
||||
```
|
||||
|
||||
|
||||
@ -28,7 +28,8 @@ exports.setup = function (loadJson, rootDir) {
|
||||
loadJson.database_plugin.interval = 0;
|
||||
}
|
||||
|
||||
if (typeof loadJson.database_plugin.interval !== 'number' || loadJson.database_plugin.interval < 0) {
|
||||
loadJson.database_plugin.interval = Number(loadJson.database_plugin.interval);
|
||||
if (typeof loadJson.database_plugin.interval !== 'number' || isNaN(loadJson.database_plugin.interval) || loadJson.database_plugin.interval < 0) {
|
||||
loadJson.database_plugin.interval = 24;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user