mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
[Sora] fixed Gdbot (i hope this shit never got down)
This commit is contained in:
parent
2eaa6c1217
commit
8c0e2313cc
3 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 51
|
version = 52
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -1354,7 +1354,7 @@ object SoraExtractor : SoraStream() {
|
||||||
iframe.apmap { (iframeLink, title) ->
|
iframe.apmap { (iframeLink, title) ->
|
||||||
val size = Regex("(?i)\\s(\\S+gb|mb)").find(title)?.groupValues?.getOrNull(1)
|
val size = Regex("(?i)\\s(\\S+gb|mb)").find(title)?.groupValues?.getOrNull(1)
|
||||||
val gdBotLink = extractGdbot(iframeLink)
|
val gdBotLink = extractGdbot(iframeLink)
|
||||||
val videoLink = extractDirectDl(gdBotLink ?: return@apmap null)
|
val videoLink = extractDrivebot(gdBotLink ?: return@apmap null)
|
||||||
|
|
||||||
callback.invoke(
|
callback.invoke(
|
||||||
ExtractorLink(
|
ExtractorLink(
|
||||||
|
@ -1397,7 +1397,7 @@ object SoraExtractor : SoraStream() {
|
||||||
iframe.apmap { (link, quality, size) ->
|
iframe.apmap { (link, quality, size) ->
|
||||||
val fdLink = bypassFdAds(link)
|
val fdLink = bypassFdAds(link)
|
||||||
val gdBotLink = extractGdbot(fdLink ?: return@apmap null)
|
val gdBotLink = extractGdbot(fdLink ?: return@apmap null)
|
||||||
val videoLink = extractDirectDl(gdBotLink ?: return@apmap null)
|
val videoLink = extractDrivebot(gdBotLink ?: return@apmap null)
|
||||||
|
|
||||||
callback.invoke(
|
callback.invoke(
|
||||||
ExtractorLink(
|
ExtractorLink(
|
||||||
|
|
|
@ -158,7 +158,7 @@ open class SoraStream : TmdbProvider() {
|
||||||
val searchResponse = mutableListOf<SearchResponse>()
|
val searchResponse = mutableListOf<SearchResponse>()
|
||||||
|
|
||||||
val mainResponse = app.get(
|
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/"
|
referer = "$mainAPI/"
|
||||||
).parsedSafe<Results>()?.results?.mapNotNull { media ->
|
).parsedSafe<Results>()?.results?.mapNotNull { media ->
|
||||||
media.toSearchResponse()
|
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) 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)
|
invokeM4uhd(res.title, res.year, res.season, res.episode, subtitleCallback, callback)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue