[Sora] fixed Gdbot (i hope this shit never got down)

This commit is contained in:
hexated 2022-12-11 10:09:55 +07:00
parent 2eaa6c1217
commit 8c0e2313cc
3 changed files with 7 additions and 7 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 51
version = 52
cloudstream {

View file

@ -1354,7 +1354,7 @@ object SoraExtractor : SoraStream() {
iframe.apmap { (iframeLink, title) ->
val size = Regex("(?i)\\s(\\S+gb|mb)").find(title)?.groupValues?.getOrNull(1)
val gdBotLink = extractGdbot(iframeLink)
val videoLink = extractDirectDl(gdBotLink ?: return@apmap null)
val videoLink = extractDrivebot(gdBotLink ?: return@apmap null)
callback.invoke(
ExtractorLink(
@ -1397,7 +1397,7 @@ object SoraExtractor : SoraStream() {
iframe.apmap { (link, quality, size) ->
val fdLink = bypassFdAds(link)
val gdBotLink = extractGdbot(fdLink ?: return@apmap null)
val videoLink = extractDirectDl(gdBotLink ?: return@apmap null)
val videoLink = extractDrivebot(gdBotLink ?: return@apmap null)
callback.invoke(
ExtractorLink(

View file

@ -158,7 +158,7 @@ open class SoraStream : TmdbProvider() {
val searchResponse = mutableListOf<SearchResponse>()
val mainResponse = app.get(
"$tmdbAPI/search/multi?api_key=$apiKey&language=en-US&query=$query&page=1&include_adult=false",
"$tmdbAPI/search/multi?api_key=$apiKey&language=en-US&query=$query&page=1&include_adult=${settingsForProvider.enableAdult}",
referer = "$mainAPI/"
).parsedSafe<Results>()?.results?.mapNotNull { media ->
media.toSearchResponse()
@ -427,9 +427,9 @@ open class SoraStream : TmdbProvider() {
{
if(!res.isAnime) invokeGMovies(res.title, res.year, res.season, res.episode, subtitleCallback, callback)
},
// {
// if(!res.isAnime) invokeFDMovies(res.title, res.season, res.episode, subtitleCallback, callback)
// },
{
if(!res.isAnime) invokeFDMovies(res.title, res.season, res.episode, subtitleCallback, callback)
},
{
invokeM4uhd(res.title, res.year, res.season, res.episode, subtitleCallback, callback)
},