mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-31 00:05:27 +02:00
move to global
This commit is contained in:
parent
709c33f27a
commit
84c9c6cb50
2 changed files with 7 additions and 1 deletions
|
@ -91,6 +91,12 @@ class Server {
|
|||
global.PodcastDownloadTimeout = 30000
|
||||
}
|
||||
|
||||
if (process.env.MAX_FAILED_EPISODE_CHECKS) {
|
||||
global.MaxFailedEpisodeChecks = process.env.MAX_FAILED_EPISODE_CHECKS
|
||||
} else {
|
||||
global.MaxFailedEpisodeChecks = 24
|
||||
}
|
||||
|
||||
if (!fs.pathExistsSync(global.ConfigPath)) {
|
||||
fs.mkdirSync(global.ConfigPath)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue