Hanime1:Bump version.

This commit is contained in:
ZhendongWu 2025-03-22 12:44:32 +08:00
parent 952e90f592
commit d54d4368e7
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
ext {
extName = 'Hanime1'
extClass = '.Hanime1'
extVersionCode = 3
extVersionCode = 4
isNsfw = true
}

View file

@ -111,7 +111,7 @@ class Hanime1 : AnimeHttpSource(), ConfigurableAnimeSource {
}.filterNot { it.videoUrl?.startsWith("blob") == true }
.sortedByDescending { preferQuality == it.quality }
.ifEmpty {
// found source from script content
// Try to find the source from the script content.
val videoUrl = doc.select("script[type=application/ld+json]").first()!!.data().let {
val info = json.decodeFromString<JsonElement>(it).jsonObject
info["contentUrl"]!!.jsonPrimitive.content