higotv: Fix poster
This commit is contained in:
parent
52205de1ec
commit
4dd8f50793
3 changed files with 3 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 4
|
||||
version = 5
|
||||
|
||||
dependencies{
|
||||
implementation("com.google.code.gson:gson:2.9.0")
|
||||
|
|
|
@ -102,7 +102,7 @@ class HigoTVProvider : MainAPI() {
|
|||
// Parse info
|
||||
val title = document.select(".anime-op__txt").text()
|
||||
val engTitle = document.select(".anime-eng__txt").text()
|
||||
val poster = fixUrl(document.select(".anime-op__img > img").attr("src"))
|
||||
val poster = document.select(".main-poster").attr("src")
|
||||
val tags = document.select(".span-menu-ogg a").map { it.text() }
|
||||
|
||||
val tvType =
|
||||
|
@ -144,7 +144,6 @@ class HigoTVProvider : MainAPI() {
|
|||
"User-Agent" to "Mozilla/5.0 (Windows NT 10.0; rv:126.0) Gecko/20100101 Firefox/126.0",
|
||||
"accept-language" to "en-US,en;q=0.5"
|
||||
)).document
|
||||
Log.d("CakesTwix-Debug", playerDocument.select("script[type*=text/javascript]").html().substringAfter("file: '").substringBefore("',"))
|
||||
val parsedJSON = gson.fromJson<List<PlayerJson>>(
|
||||
playerDocument.select("script[type*=text/javascript]").html().substringAfter("file: '").substringBefore("',"), listPlayer
|
||||
)
|
||||
|
|
|
@ -1,14 +1,9 @@
|
|||
package com.lagradost.models
|
||||
|
||||
data class ListPlayerJson (
|
||||
|
||||
val list: List<PlayerJson>
|
||||
)
|
||||
|
||||
data class PlayerJson (
|
||||
|
||||
val title : String?,
|
||||
val file : String?,
|
||||
val folder: List<PlayerJson>?,
|
||||
val id: String?,
|
||||
val poster: String?
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue