mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 10:51:37 +00:00
Added Explicit user book rating + Community rating
This commit is contained in:
parent
3bfd9f419c
commit
dba575761e
16 changed files with 426 additions and 64 deletions
|
|
@ -58,6 +58,11 @@ class ServerSettings {
|
|||
this.version = packageJson.version
|
||||
this.buildNumber = packageJson.buildNumber
|
||||
|
||||
// Ratings
|
||||
this.enableRating = true
|
||||
this.enableCommunityRating = false
|
||||
this.enableExplicitRating = false
|
||||
|
||||
// Auth settings
|
||||
this.authLoginCustomMessage = null
|
||||
this.authActiveAuthMethods = ['local']
|
||||
|
|
@ -123,6 +128,10 @@ class ServerSettings {
|
|||
this.version = settings.version || null
|
||||
this.buildNumber = settings.buildNumber || 0 // Added v2.4.5
|
||||
|
||||
this.enableRating = settings.enableRating !== false
|
||||
this.enableCommunityRating = !!settings.enableCommunityRating
|
||||
this.enableExplicitRating = !!settings.enableExplicitRating
|
||||
|
||||
this.authLoginCustomMessage = settings.authLoginCustomMessage || null // Added v2.8.0
|
||||
this.authActiveAuthMethods = settings.authActiveAuthMethods || ['local']
|
||||
|
||||
|
|
@ -233,6 +242,9 @@ class ServerSettings {
|
|||
logLevel: this.logLevel,
|
||||
version: this.version,
|
||||
buildNumber: this.buildNumber,
|
||||
enableRating: this.enableRating,
|
||||
enableCommunityRating: this.enableCommunityRating,
|
||||
enableExplicitRating: this.enableExplicitRating,
|
||||
authLoginCustomMessage: this.authLoginCustomMessage,
|
||||
authActiveAuthMethods: this.authActiveAuthMethods,
|
||||
authOpenIDIssuerURL: this.authOpenIDIssuerURL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue