Hanime1:Bump version.
This commit is contained in:
parent
952e90f592
commit
d54d4368e7
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'Hanime1'
|
extName = 'Hanime1'
|
||||||
extClass = '.Hanime1'
|
extClass = '.Hanime1'
|
||||||
extVersionCode = 3
|
extVersionCode = 4
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@ class Hanime1 : AnimeHttpSource(), ConfigurableAnimeSource {
|
||||||
}.filterNot { it.videoUrl?.startsWith("blob") == true }
|
}.filterNot { it.videoUrl?.startsWith("blob") == true }
|
||||||
.sortedByDescending { preferQuality == it.quality }
|
.sortedByDescending { preferQuality == it.quality }
|
||||||
.ifEmpty {
|
.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 videoUrl = doc.select("script[type=application/ld+json]").first()!!.data().let {
|
||||||
val info = json.decodeFromString<JsonElement>(it).jsonObject
|
val info = json.decodeFromString<JsonElement>(it).jsonObject
|
||||||
info["contentUrl"]!!.jsonPrimitive.content
|
info["contentUrl"]!!.jsonPrimitive.content
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue