File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
komf-api-models/src/commonMain/kotlin/snd/komf/api/config
komf-app/src/main/kotlin/snd/komf/app/api/mappers Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ data class EventListenerConfigUpdateRequest(
8686@Serializable
8787class MetadataProvidersConfigUpdateRequest (
8888 val comicVineClientId : PatchValue <String > = PatchValue .Unset ,
89+ val comicVineSearchLimit : PatchValue <Int > = PatchValue .Unset ,
8990 val malClientId : PatchValue <String > = PatchValue .Unset ,
9091 val nameMatchingMode : PatchValue <KomfNameMatchingMode > = PatchValue .Unset ,
9192 val defaultProviders : PatchValue <ProvidersConfigUpdateRequest > = PatchValue .Unset ,
Original file line number Diff line number Diff line change @@ -75,6 +75,11 @@ class AppConfigUpdateMapper {
7575 is PatchValue .Some -> apiKey.value
7676 PatchValue .Unset -> config.comicVineApiKey
7777 },
78+ comicVineSearchLimit = when (val limit = patch.comicVineSearchLimit) {
79+ PatchValue .None -> null
80+ is PatchValue .Some -> limit.value
81+ PatchValue .Unset -> config.comicVineSearchLimit
82+ },
7883 nameMatchingMode = when (patch.nameMatchingMode.getOrNull()) {
7984 KomfNameMatchingMode .EXACT -> NameMatchingMode .EXACT
8085 KomfNameMatchingMode .CLOSEST_MATCH -> NameMatchingMode .CLOSEST_MATCH
You can’t perform that action at this time.
0 commit comments