small fix

This commit is contained in:
hexated 2022-10-01 01:21:33 +07:00
parent 73b775d29f
commit 3cb4e9ecd6

View file

@ -153,7 +153,8 @@ class GogoanimeProvider : MainAPI() {
isM3u8 = source.type == "hls" || source.label?.contains( isM3u8 = source.type == "hls" || source.label?.contains(
"auto", "auto",
ignoreCase = true ignoreCase = true
) == true ) == true,
mapOf("Origin" to "https://gogohd.net")
) )
) )
} }
@ -202,7 +203,7 @@ class GogoanimeProvider : MainAPI() {
override suspend fun getMainPage( override suspend fun getMainPage(
page: Int, page: Int,
request : MainPageRequest request: MainPageRequest
): HomePageResponse { ): HomePageResponse {
val params = mapOf("page" to page.toString(), "type" to request.data) val params = mapOf("page" to page.toString(), "type" to request.data)
val html = app.get( val html = app.get(