Fix:Cover aspect ratio init #341

This commit is contained in:
advplyr 2022-02-01 16:58:11 -06:00
parent 316ae4ff79
commit 964cba0491

View File

@ -67,7 +67,7 @@ class ServerSettings {
this.loggerDailyLogsToKeep = settings.loggerDailyLogsToKeep || 7
this.loggerScannerLogsToKeep = settings.loggerScannerLogsToKeep || 2
this.coverAspectRatio = settings.coverAspectRatio || BookCoverAspectRatio.SQUARE
this.coverAspectRatio = !isNaN(settings.coverAspectRatio) ? settings.coverAspectRatio : BookCoverAspectRatio.SQUARE
this.bookshelfView = settings.bookshelfView || BookshelfView.STANDARD
this.logLevel = settings.logLevel || Logger.logLevel