mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fix few providers
This commit is contained in:
parent
c13ed67d60
commit
20dbd2a774
9 changed files with 28 additions and 165 deletions
|
@ -1,7 +1,7 @@
|
|||
import org.jetbrains.kotlin.konan.properties.Properties
|
||||
|
||||
// use an integer for version numbers
|
||||
version = 143
|
||||
version = 144
|
||||
|
||||
android {
|
||||
defaultConfig {
|
||||
|
|
|
@ -960,7 +960,7 @@ object SoraExtractor : SoraStream() {
|
|||
) {
|
||||
val res = app.get(
|
||||
"$biliBiliAPI/anime/episodes?id=${aniId ?: return}&source_id=bilibili",
|
||||
referer = kaguyaBaseUrl
|
||||
referer = otakuzBaseUrl
|
||||
)
|
||||
.parsedSafe<BiliBiliDetails>()?.episodes?.find {
|
||||
it.episodeNumber == episode
|
||||
|
@ -969,7 +969,7 @@ object SoraExtractor : SoraStream() {
|
|||
val sources =
|
||||
app.get(
|
||||
"$biliBiliAPI/source?episode_id=${res.sourceEpisodeId}&source_media_id=${res.sourceMediaId}&source_id=${res.sourceId}",
|
||||
referer = kaguyaBaseUrl
|
||||
referer = otakuzBaseUrl
|
||||
)
|
||||
.parsedSafe<BiliBiliSourcesResponse>()
|
||||
|
||||
|
@ -977,7 +977,7 @@ object SoraExtractor : SoraStream() {
|
|||
val quality =
|
||||
app.get(
|
||||
source.file ?: return@apmap null,
|
||||
referer = kaguyaBaseUrl
|
||||
referer = otakuzBaseUrl
|
||||
).document.selectFirst("Representation")
|
||||
?.attr("height")
|
||||
callback.invoke(
|
||||
|
@ -985,7 +985,7 @@ object SoraExtractor : SoraStream() {
|
|||
"BiliBili",
|
||||
"BiliBili",
|
||||
source.file,
|
||||
kaguyaBaseUrl,
|
||||
"",
|
||||
quality?.toIntOrNull() ?: Qualities.Unknown.value,
|
||||
isDash = true
|
||||
)
|
||||
|
|
|
@ -121,7 +121,7 @@ open class SoraStream : TmdbProvider() {
|
|||
const val watchSomuchAPI = "https://watchsomuch.tv" // sub only
|
||||
val gomoviesAPI = base64DecodeAPI("bQ==Y28=ZS4=aW4=bmw=LW8=ZXM=dmk=bW8=Z28=Ly8=czo=dHA=aHQ=")
|
||||
const val ask4MoviesAPI = "https://ask4movie.net"
|
||||
const val biliBiliAPI = "https://api-vn.kaguya.app/server"
|
||||
const val biliBiliAPI = "https://api-vn.otakuz.live/server"
|
||||
const val watchOnlineAPI = "https://watchonline.ag"
|
||||
const val nineTvAPI = "https://api.9animetv.live"
|
||||
const val putlockerAPI = "https://ww7.putlocker.vip"
|
||||
|
@ -500,16 +500,16 @@ open class SoraStream : TmdbProvider() {
|
|||
{
|
||||
if(!res.isAnime) invokeKimcartoon(res.title, res.season, res.episode, subtitleCallback, callback)
|
||||
},
|
||||
{
|
||||
invokeXmovies(
|
||||
res.title,
|
||||
res.year,
|
||||
res.season,
|
||||
res.episode,
|
||||
subtitleCallback,
|
||||
callback
|
||||
)
|
||||
},
|
||||
// {
|
||||
// invokeXmovies(
|
||||
// res.title,
|
||||
// res.year,
|
||||
// res.season,
|
||||
// res.episode,
|
||||
// subtitleCallback,
|
||||
// callback
|
||||
// )
|
||||
// },
|
||||
{
|
||||
if (!res.isAnime) invokeFmovies(
|
||||
res.title,
|
||||
|
|
|
@ -200,16 +200,16 @@ class SoraStreamLite : SoraStream() {
|
|||
callback
|
||||
)
|
||||
},
|
||||
{
|
||||
invokeXmovies(
|
||||
res.title,
|
||||
res.year,
|
||||
res.season,
|
||||
res.episode,
|
||||
subtitleCallback,
|
||||
callback
|
||||
)
|
||||
},
|
||||
// {
|
||||
// invokeXmovies(
|
||||
// res.title,
|
||||
// res.year,
|
||||
// res.season,
|
||||
// res.episode,
|
||||
// subtitleCallback,
|
||||
// callback
|
||||
// )
|
||||
// },
|
||||
{
|
||||
if (!res.isAnime) invokeFmovies(
|
||||
res.title,
|
||||
|
|
|
@ -2,7 +2,6 @@ package com.hexated
|
|||
|
||||
import android.util.Base64
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
import com.hexated.DumpUtils.createHeaders
|
||||
import com.hexated.DumpUtils.queryApi
|
||||
import com.hexated.SoraStream.Companion.anilistAPI
|
||||
import com.hexated.SoraStream.Companion.base64DecodeAPI
|
||||
|
@ -51,7 +50,7 @@ import kotlin.math.min
|
|||
|
||||
val bflixChipperKey = base64DecodeAPI("Yjc=ejM=TzA=YTk=WHE=WnU=bXU=RFo=")
|
||||
const val bflixKey = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
|
||||
const val kaguyaBaseUrl = "https://kaguya.app/"
|
||||
const val otakuzBaseUrl = "https://otakuz.live/"
|
||||
val soraHeaders = mapOf(
|
||||
"lang" to "en",
|
||||
"versioncode" to "33",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue