ServerConfiguration

data class ServerConfiguration(val logFileRetentionDays: Int, val isStartupWizardCompleted: Boolean, val cachePath: String? = null, val previousVersion: String? = null, val previousVersionStr: String? = null, val enableMetrics: Boolean, val enableNormalizedItemByNameIds: Boolean, val isPortAuthorized: Boolean, val quickConnectAvailable: Boolean, val enableCaseSensitiveItemIds: Boolean, val disableLiveTvChannelUserDataName: Boolean, val metadataPath: String, val preferredMetadataLanguage: String, val metadataCountryCode: String, val sortReplaceCharacters: List<String>, val sortRemoveCharacters: List<String>, val sortRemoveWords: List<String>, val minResumePct: Int, val maxResumePct: Int, val minResumeDurationSeconds: Int, val minAudiobookResume: Int, val maxAudiobookResume: Int, val inactiveSessionThreshold: Int, val libraryMonitorDelay: Int, val libraryUpdateDuration: Int, val imageSavingConvention: ImageSavingConvention, val metadataOptions: List<MetadataOptions>, val skipDeserializationForBasicTypes: Boolean, val serverName: String, val uiCulture: String, val saveMetadataHidden: Boolean, val contentTypes: List<NameValuePair>, val remoteClientBitrateLimit: Int, val enableFolderView: Boolean, val enableGroupingIntoCollections: Boolean, val displaySpecialsWithinSeasons: Boolean, val codecsUsed: List<String>, val pluginRepositories: List<RepositoryInfo>, val enableExternalContentInSuggestions: Boolean, val imageExtractionTimeoutMs: Int, val pathSubstitutions: List<PathSubstitution>, val enableSlowResponseWarning: Boolean, val slowResponseThresholdMs: Long, val corsHosts: List<String>, val activityLogRetentionDays: Int? = null, val libraryScanFanoutConcurrency: Int, val libraryMetadataRefreshConcurrency: Int, val removeOldPlugins: Boolean, val allowClientLogUpload: Boolean, val dummyChapterDuration: Int, val chapterImageResolution: ImageResolution, val parallelImageEncodingLimit: Int, val castReceiverApplications: List<CastReceiverApplication>, val trickplayOptions: TrickplayOptions)

Represents the server configuration.

Constructors

Link copied to clipboard
constructor(logFileRetentionDays: Int, isStartupWizardCompleted: Boolean, cachePath: String? = null, previousVersion: String? = null, previousVersionStr: String? = null, enableMetrics: Boolean, enableNormalizedItemByNameIds: Boolean, isPortAuthorized: Boolean, quickConnectAvailable: Boolean, enableCaseSensitiveItemIds: Boolean, disableLiveTvChannelUserDataName: Boolean, metadataPath: String, preferredMetadataLanguage: String, metadataCountryCode: String, sortReplaceCharacters: List<String>, sortRemoveCharacters: List<String>, sortRemoveWords: List<String>, minResumePct: Int, maxResumePct: Int, minResumeDurationSeconds: Int, minAudiobookResume: Int, maxAudiobookResume: Int, inactiveSessionThreshold: Int, libraryMonitorDelay: Int, libraryUpdateDuration: Int, imageSavingConvention: ImageSavingConvention, metadataOptions: List<MetadataOptions>, skipDeserializationForBasicTypes: Boolean, serverName: String, uiCulture: String, saveMetadataHidden: Boolean, contentTypes: List<NameValuePair>, remoteClientBitrateLimit: Int, enableFolderView: Boolean, enableGroupingIntoCollections: Boolean, displaySpecialsWithinSeasons: Boolean, codecsUsed: List<String>, pluginRepositories: List<RepositoryInfo>, enableExternalContentInSuggestions: Boolean, imageExtractionTimeoutMs: Int, pathSubstitutions: List<PathSubstitution>, enableSlowResponseWarning: Boolean, slowResponseThresholdMs: Long, corsHosts: List<String>, activityLogRetentionDays: Int? = null, libraryScanFanoutConcurrency: Int, libraryMetadataRefreshConcurrency: Int, removeOldPlugins: Boolean, allowClientLogUpload: Boolean, dummyChapterDuration: Int, chapterImageResolution: ImageResolution, parallelImageEncodingLimit: Int, castReceiverApplications: List<CastReceiverApplication>, trickplayOptions: TrickplayOptions)

Properties

Link copied to clipboard

The number of days we should retain activity logs.

Link copied to clipboard

A value indicating whether clients should be allowed to upload logs.

Link copied to clipboard
val cachePath: String? = null

The cache path.

Link copied to clipboard

The list of cast receiver applications.

Link copied to clipboard

The chapter image resolution.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The cors hosts.

Link copied to clipboard

The dummy chapter duration in seconds, use 0 (zero) or less to disable generation alltogether.

Link copied to clipboard

A value indicating whether enable case sensitive item ids.

Link copied to clipboard
Link copied to clipboard

A value indicating whether to enable prometheus metrics exporting.

Link copied to clipboard

A value indicating whether slow server responses should be logged as a warning.

Link copied to clipboard
Link copied to clipboard

The image saving convention.

Link copied to clipboard

Gets or sets the threshold in minutes after a inactive session gets closed automatically. If set to 0 the check for inactive sessions gets disabled.

Link copied to clipboard

A value indicating whether this instance is port authorized.

Link copied to clipboard

A value indicating whether this instance is first run.

Link copied to clipboard

The how many metadata refreshes can run concurrently.

Link copied to clipboard

Gets or sets the delay in seconds that we will wait after a file system change to try and discover what has been added/removed Some delay is necessary with some items because their creation is not atomic. It involves the creation of several different directories and files.

Link copied to clipboard

The how the library scan fans out.

Link copied to clipboard

The duration in seconds that we will wait after a library updated event before executing the library changed notification.

Link copied to clipboard

The number of days we should retain log files.

Link copied to clipboard

The remaining minutes of a book that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched.

Link copied to clipboard

The maximum percentage of an item that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched.

Link copied to clipboard

The metadata country code.

Link copied to clipboard
Link copied to clipboard

The metadata path.

Link copied to clipboard

The minimum minutes of a book that must be played in order for playstate to be updated.

Link copied to clipboard

The minimum duration that an item must have in order to be eligible for playstate updates..

Link copied to clipboard

The minimum percentage of an item that must be played in order for playstate to be updated.

Link copied to clipboard

The limit for parallel image encoding.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The preferred metadata language.

Link copied to clipboard
val previousVersion: String? = null

The last known version that was ran using the configuration.

Link copied to clipboard

Gets or sets the stringified PreviousVersion to be stored/loaded, because System.Version itself isn't xml-serializable.

Link copied to clipboard

A value indicating whether quick connect is available for use on this server.

Link copied to clipboard
Link copied to clipboard

A value indicating whether older plugins should automatically be deleted from the plugin folder.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The threshold for the slow response time warning in ms.

Link copied to clipboard

Characters to be removed from strings to create a sort name.

Link copied to clipboard

Words to be removed from strings to create a sort name.

Link copied to clipboard

Characters to be replaced with a ' ' in strings to create a sort name.

Link copied to clipboard

The trickplay options.

Link copied to clipboard