fix: don't attempt to fix urls that are JSON arrays (#1498)

This commit is contained in:
Bnyro
2025-01-21 21:45:11 +01:00
committed by GitHub
parent eb9b309e72
commit cfc219c102

View File

@ -600,8 +600,8 @@ fun MainAPI.fixUrlNull(url: String?): String? {
fun MainAPI.fixUrl(url: String): String {
if (url.startsWith("http") ||
// Do not fix JSON objects when passed as urls.
url.startsWith("{\"")
// Do not fix JSON objects and arrays when passed as urls.
url.startsWith("{\"") || url.startsWith("[")
) {
return url
}