mirror of
https://github.com/recloudstream/cloudstream.git
synced 2025-05-17 11:15:54 +08:00
fix: don't attempt to fix urls that are JSON arrays (#1498)
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user