[animeowl] fix: Quality preference match

This commit is contained in:
Khaled 2025-04-05 22:56:48 +06:00 committed by GitHub
parent 2574c7fbf8
commit 4030234683
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,7 @@ class OwlExtractor(private val client: OkHttpClient, private val baseUrl: String
noRedirectClient.newCall(GET("${stream.url}$jwt")).execute() noRedirectClient.newCall(GET("${stream.url}$jwt")).execute()
.use { it.headers["Location"] }?.let { .use { it.headers["Location"] }?.let {
videoList.add( videoList.add(
Video(it, "${link.lang} Luffy:${stream.resolution}", it), Video(it, "${link.lang} Luffy:${stream.resolution}p", it),
) )
} }
} }
@ -83,7 +83,7 @@ class OwlExtractor(private val client: OkHttpClient, private val baseUrl: String
return client.newCall(GET(url)).execute().let { it -> return client.newCall(GET(url)).execute().let { it ->
if (it.isSuccessful) { if (it.isSuccessful) {
it.parseAs<Stream>().url.let { it.parseAs<Stream>().url.let {
playlistUtils.extractFromHls(it, videoNameGen = { qty -> "$lang $server:$qty" }) playlistUtils.extractFromHls(it, videoNameGen = { qty -> "$lang $server:${qty}p" })
} }
} else { } else {
emptyList() emptyList()