Merged with dark25 (#636)
* merge merged lib, lib-multisrc, all, ar, de, en, es, fr, hi, id, it, pt, tr src from dark25 * patch
This commit is contained in:
parent
9f385108fc
commit
1384df62f3
350 changed files with 12176 additions and 1064 deletions
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'Sudatchi'
|
||||
extClass = '.Sudatchi'
|
||||
extVersionCode = 5
|
||||
extVersionCode = 10
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ class Sudatchi : AnimeHttpSource(), ConfigurableAnimeSource {
|
|||
override fun popularAnimeRequest(page: Int) = GET(baseUrl, headers)
|
||||
|
||||
private fun Int.parseStatus() = when (this) {
|
||||
1 -> SAnime.UNKNOWN // Not Yet Released
|
||||
1 -> SAnime.LICENSED // Not Yet Released
|
||||
2 -> SAnime.ONGOING
|
||||
3 -> SAnime.COMPLETED
|
||||
else -> SAnime.UNKNOWN
|
||||
|
@ -86,7 +86,7 @@ class Sudatchi : AnimeHttpSource(), ConfigurableAnimeSource {
|
|||
val titleLang = preferences.title
|
||||
val document = response.asJsoup()
|
||||
val data = document.parseAs<HomePageDto>().animeSpotlight
|
||||
return AnimesPage(data.map { it.toSAnime(titleLang) }, false)
|
||||
return AnimesPage(data.map { it.toSAnime(titleLang) }.filterNot { it.status == SAnime.LICENSED }, false)
|
||||
}
|
||||
|
||||
// =============================== Latest ===============================
|
||||
|
@ -96,7 +96,7 @@ class Sudatchi : AnimeHttpSource(), ConfigurableAnimeSource {
|
|||
sudatchiFilters.fetchFilters()
|
||||
val titleLang = preferences.title
|
||||
return response.parseAs<DirectoryDto>().let {
|
||||
AnimesPage(it.animes.map { it.toSAnime(titleLang) }, it.page != it.pages)
|
||||
AnimesPage(it.animes.map { it.toSAnime(titleLang) }.filterNot { it.status == SAnime.LICENSED }, it.page != it.pages)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -176,7 +176,13 @@ class Sudatchi : AnimeHttpSource(), ConfigurableAnimeSource {
|
|||
videoUrl,
|
||||
videoNameGen = { "Sudatchi (Private IPFS Gateway) - $it" },
|
||||
subtitleList = subtitles.map {
|
||||
Track("$ipfsUrl${it.url}", "${it.subtitlesName.name} (${it.subtitlesName.language})")
|
||||
Track(
|
||||
when {
|
||||
it.url.startsWith("/ipfs") -> "$ipfsUrl${it.url}"
|
||||
else -> "$baseUrl${it.url}"
|
||||
},
|
||||
"${it.SubtitlesName.name} (${it.SubtitlesName.language})",
|
||||
)
|
||||
}.sort(),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ data class SubtitleLangDto(
|
|||
data class SubtitleDto(
|
||||
val url: String,
|
||||
@SerialName("SubtitlesName")
|
||||
val subtitlesName: SubtitleLangDto,
|
||||
val SubtitlesName: SubtitleLangDto,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue