mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-17 17:53:32 -05:00
* [#1496] First conversion attempt * [#1496] Configurable conversion * Fix: allow nested configs (map) * [#1496] Support explicit `none` conversion * Use MimeUtils for provided download * [1496] Support image conversion on load for downloaded images * Lint * [#1496] Support conversion on fresh download as well Previous commit was only for already downloaded images, now also for fresh and cached * [#1496] Refactor: Move where conversion for download happens * Rewrite config handling, improve custom types * Lint * Add format to pages mutation * Lint * Standardize url encode * Lint * Config: Allow additional conversion parameters * Implement conversion quality parameter * Lint * Implement a conversion util to allow fallback readers * Add downloadConversions to api and backup, fix updateValue issues * Lint * Minor cleanup * Update libs.versions.toml --------- Co-authored-by: Syer10 <syer10@users.noreply.github.com>
This commit is contained in:
@@ -2,7 +2,6 @@ package suwayomi.tachidesk.opds.util
|
||||
|
||||
import suwayomi.tachidesk.server.serverConfig
|
||||
import java.net.URLEncoder
|
||||
import java.nio.charset.StandardCharsets
|
||||
import java.text.Normalizer
|
||||
|
||||
/**
|
||||
@@ -15,7 +14,7 @@ object OpdsStringUtil {
|
||||
* Encodes a string to be used in OPDS URLs.
|
||||
* @return The URL-encoded string
|
||||
*/
|
||||
fun String.encodeForOpdsURL(): String = URLEncoder.encode(this, StandardCharsets.UTF_8.toString())
|
||||
fun String.encodeForOpdsURL(): String = URLEncoder.encode(this, Charsets.UTF_8)
|
||||
|
||||
/**
|
||||
* Converts a string into a URL-friendly slug.
|
||||
|
||||
Reference in New Issue
Block a user