Skip to content

Commit

Permalink
Feat(en/HiAnime): Support Raw servers (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark25 authored Oct 7, 2024
1 parent 7e7ba94 commit 772241d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ abstract class ZoroTheme(

val serversDoc = response.parseAs<HtmlResponse>().getHtml()

val embedLinks = listOf("servers-sub", "servers-dub", "servers-mixed").map { type ->
val embedLinks = listOf("servers-sub", "servers-dub", "servers-mixed", "servers-raw").map { type ->
if (type !in typeSelection) return@map emptyList()

serversDoc.select("div.$type div.item").parallelMapNotNull {
Expand Down Expand Up @@ -332,8 +332,8 @@ abstract class ZoroTheme(
private const val PREF_HOSTER_KEY = "hoster_selection"

private const val PREF_TYPE_TOGGLE_KEY = "type_selection"
private val TYPES_ENTRIES = arrayOf("Sub", "Dub", "Mixed")
private val TYPES_ENTRY_VALUES = arrayOf("servers-sub", "servers-dub", "servers-mixed")
private val TYPES_ENTRIES = arrayOf("Sub", "Dub", "Mixed", "Raw")
private val TYPES_ENTRY_VALUES = arrayOf("servers-sub", "servers-dub", "servers-mixed", "servers-raw")
private val PREF_TYPES_TOGGLE_DEFAULT = TYPES_ENTRY_VALUES.toSet()
}

Expand Down
2 changes: 1 addition & 1 deletion src/en/zoro/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ext {
extClass = '.HiAnime'
themePkg = 'zorotheme'
baseUrl = 'https://hianime.to'
overrideVersionCode = 40
overrideVersionCode = 41
}

apply from: "$rootDir/common.gradle"

0 comments on commit 772241d

Please sign in to comment.