[skip ci] refactor: Remove (most) unnecessary .use block usages (#2841)

Co-authored-by: jmir1 <jhmiramon@gmail.com>
This commit is contained in:
Claudemirovsky
2024-01-29 10:01:32 -03:00
committed by GitHub
parent ace0dbf5d2
commit d058cd77f8
175 changed files with 504 additions and 519 deletions

View File

@ -8,7 +8,7 @@ import okhttp3.OkHttpClient
class UqloadExtractor(private val client: OkHttpClient) {
fun videosFromUrl(url: String, prefix: String = ""): List<Video> {
val doc = client.newCall(GET(url)).execute().use { it.asJsoup() }
val doc = client.newCall(GET(url)).execute().asJsoup()
val script = doc.selectFirst("script:containsData(sources:)")?.data()
?: return emptyList()