[LibSoc] Fix image server option

master
Koitharu 2 years ago
parent a88a861d82
commit b1ac1cf238
Signed by: Koitharu
GPG Key ID: 676DEE768C17A9D7

@ -40,6 +40,7 @@ internal abstract class LibSocialParser(
private val splitTranslationsKey = ConfigKey.SplitByTranslations(true) private val splitTranslationsKey = ConfigKey.SplitByTranslations(true)
private val preferredServerKey = ConfigKey.PreferredImageServer( private val preferredServerKey = ConfigKey.PreferredImageServer(
presetValues = mapOf( presetValues = mapOf(
null to null,
SERVER_MAIN to "Первый", SERVER_MAIN to "Первый",
SERVER_SECONDARY to "Второй", SERVER_SECONDARY to "Второй",
SERVER_COMPRESS to "Сжатия", SERVER_COMPRESS to "Сжатия",
@ -86,7 +87,7 @@ internal abstract class LibSocialParser(
SortOrder.NEWEST -> "created_at" SortOrder.NEWEST -> "created_at"
SortOrder.ALPHABETICAL, SortOrder.ALPHABETICAL,
SortOrder.ALPHABETICAL_DESC, SortOrder.ALPHABETICAL_DESC,
-> "rus_name" -> "rus_name"
}, },
) )
urlBuilder.addQueryParameter( urlBuilder.addQueryParameter(
@ -97,7 +98,7 @@ internal abstract class LibSocialParser(
SortOrder.RATING, SortOrder.RATING,
SortOrder.NEWEST, SortOrder.NEWEST,
SortOrder.ALPHABETICAL_DESC, SortOrder.ALPHABETICAL_DESC,
-> "desc" -> "desc"
SortOrder.ALPHABETICAL -> "asc" SortOrder.ALPHABETICAL -> "asc"
}, },

Loading…
Cancel
Save