[skip ci] Update dependencies (#1343)
* Bump harmless dependencies Note that bumping the android plugin will make compilation show lots of "hey bro use namespace instead of AndroidManifest.xml" warnings * Remove duktape dependency Zero extensions are using it, so its safe to remove. For executing js in extensions we can use quickjs instead of ducktape. * Upgrade gradle to 7.6 * Update kotlin * Update OkHttp * Update JSoup Jesus Christ this was boring asf * Update KtLint * [skip ci] refactor on some build.gradle.kts files * Expose coroutines to all extension by default
This commit is contained in:
@ -16,7 +16,7 @@ class FembedExtractor(private val client: OkHttpClient) {
|
||||
url.replace("/v/", "/api/source/")
|
||||
}
|
||||
val body = runCatching {
|
||||
client.newCall(POST(videoApi)).execute().body?.string().orEmpty()
|
||||
client.newCall(POST(videoApi)).execute().body.string()
|
||||
}.getOrNull() ?: return emptyList<Video>()
|
||||
|
||||
val jsonResponse = try{ Json { ignoreUnknownKeys = true }.decodeFromString<FembedResponse>(body) } catch (e: Exception) { FembedResponse(false, emptyList()) }
|
||||
|
Reference in New Issue
Block a user