mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	move to global
This commit is contained in:
		
							parent
							
								
									709c33f27a
								
							
						
					
					
						commit
						84c9c6cb50
					
				| @ -91,6 +91,12 @@ class Server { | |||||||
|       global.PodcastDownloadTimeout = 30000 |       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)) { |     if (!fs.pathExistsSync(global.ConfigPath)) { | ||||||
|       fs.mkdirSync(global.ConfigPath) |       fs.mkdirSync(global.ConfigPath) | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -30,7 +30,7 @@ class PodcastManager { | |||||||
|     this.currentDownload = null |     this.currentDownload = null | ||||||
| 
 | 
 | ||||||
|     this.failedCheckMap = {} |     this.failedCheckMap = {} | ||||||
|     this.MaxFailedEpisodeChecks = parseInt(process.env.MAX_FAILED_EPISODE_CHECKS, 10) || 24 |     this.MaxFailedEpisodeChecks = global.MaxFailedEpisodeChecks | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   getEpisodeDownloadsInQueue(libraryItemId) { |   getEpisodeDownloadsInQueue(libraryItemId) { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user