mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
better code
This commit is contained in:
parent
b7b1f0ceee
commit
aa42180d4e
2 changed files with 1 additions and 5 deletions
|
@ -800,7 +800,6 @@ object SoraExtractor : SoraStream() {
|
||||||
|
|
||||||
suspend fun invokeSoraStream(
|
suspend fun invokeSoraStream(
|
||||||
title: String? = null,
|
title: String? = null,
|
||||||
isAnime: Boolean = false,
|
|
||||||
year: Int? = null,
|
year: Int? = null,
|
||||||
season: Int? = null,
|
season: Int? = null,
|
||||||
episode: Int? = null,
|
episode: Int? = null,
|
||||||
|
@ -846,9 +845,7 @@ object SoraExtractor : SoraStream() {
|
||||||
) && (it.second == year || it.first.contains("Season $season", true))
|
) && (it.second == year || it.first.contains("Season $season", true))
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
(if (isAnime) it.first.contains(Regex("(?i)$title\\s?($season|${season.toRomanNumeral()})")) else it.first.contains(
|
it.first.contains(Regex("(?i)$title\\s?($season|${season.toRomanNumeral()}|Season\\s$season)")) && it.second == year
|
||||||
Regex("(?i)$title\\s?Season\\s$season")
|
|
||||||
)) && it.second == year
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -332,7 +332,6 @@ open class SoraStream : TmdbProvider() {
|
||||||
{
|
{
|
||||||
invokeSoraStream(
|
invokeSoraStream(
|
||||||
res.title,
|
res.title,
|
||||||
res.isAnime,
|
|
||||||
res.year,
|
res.year,
|
||||||
res.season,
|
res.season,
|
||||||
res.episode,
|
res.episode,
|
||||||
|
|
Loading…
Reference in a new issue