Skip to content

Commit

Permalink
Aniwave dub
Browse files Browse the repository at this point in the history
  • Loading branch information
fakeyatogod committed Oct 31, 2023
1 parent 43aa078 commit 1831107
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@ class AniWaveSource : AnimeSource {
animeEpCode: String,
extras: List<String>?
): AnimeStreamLink {
// 0=sub , 1=softsub, 3=dub
val dataId = animeEpCode.split(",").first()
// 0=sub , 1=soft-sub, 2=dub
var index = 0
if(extras?.first() == "Dub") index = 2

val dataId = animeEpCode.split(",")[index]
val vrf = getVrf(dataId)
val servers =
Jsoup.parseBodyFragment(getJson("$mainUrl/ajax/server/list/$dataId?vrf=$vrf")!!.asJsonObject["result"].asString)
Expand Down

0 comments on commit 1831107

Please # to comment.