diff --git a/animeSources/src/main/java/com/talent/animescrapsources/animesources/AniWaveSource.kt b/animeSources/src/main/java/com/talent/animescrapsources/animesources/AniWaveSource.kt index b0773ed..0557ee0 100644 --- a/animeSources/src/main/java/com/talent/animescrapsources/animesources/AniWaveSource.kt +++ b/animeSources/src/main/java/com/talent/animescrapsources/animesources/AniWaveSource.kt @@ -82,8 +82,11 @@ class AniWaveSource : AnimeSource { animeEpCode: String, extras: List? ): 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)