Anitubeinua: add TRG player
This commit is contained in:
parent
43a21c2e43
commit
a297300940
1 changed files with 38 additions and 16 deletions
|
@ -159,7 +159,6 @@ class AnitubeinuaProvider : MainAPI() {
|
||||||
callback: (ExtractorLink) -> Unit
|
callback: (ExtractorLink) -> Unit
|
||||||
): Boolean {
|
): Boolean {
|
||||||
val dataList = data.split(", ")
|
val dataList = data.split(", ")
|
||||||
|
|
||||||
if(dataList[0].contains("https://")){ // Its First type player
|
if(dataList[0].contains("https://")){ // Its First type player
|
||||||
|
|
||||||
// Get episodes list (as json)
|
// Get episodes list (as json)
|
||||||
|
@ -199,15 +198,25 @@ class AnitubeinuaProvider : MainAPI() {
|
||||||
playersTab[2].selectFirst(" li[data-id=$playerTabId]")!!
|
playersTab[2].selectFirst(" li[data-id=$playerTabId]")!!
|
||||||
.text() // ПЛЕЄР ASHDI
|
.text() // ПЛЕЄР ASHDI
|
||||||
}
|
}
|
||||||
|
with(href){
|
||||||
if (href.contains("https://ashdi.vip/vod")) {
|
when{
|
||||||
// Add as source
|
contains("https://tortuga.wtf/vod/") -> {
|
||||||
|
M3u8Helper.generateM3u8(
|
||||||
|
source = "$playerName ($dubName)",
|
||||||
|
streamUrl = AshdiExtractor().ParseM3U8(href),
|
||||||
|
referer = "https://tortuga.wtf/"
|
||||||
|
).forEach(callback)
|
||||||
|
}
|
||||||
|
contains("https://ashdi.vip/vod") -> {
|
||||||
M3u8Helper.generateM3u8(
|
M3u8Helper.generateM3u8(
|
||||||
source = "$playerName ($dubName)",
|
source = "$playerName ($dubName)",
|
||||||
streamUrl = AshdiExtractor().ParseM3U8(href),
|
streamUrl = AshdiExtractor().ParseM3U8(href),
|
||||||
referer = "https://qeruya.cyou"
|
referer = "https://qeruya.cyou"
|
||||||
).forEach(callback)
|
).forEach(callback)
|
||||||
}
|
}
|
||||||
|
else -> {}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
index += 1
|
index += 1
|
||||||
}
|
}
|
||||||
|
@ -222,14 +231,27 @@ class AnitubeinuaProvider : MainAPI() {
|
||||||
|
|
||||||
val playerJson = tryParseJson<List<List<PlayerJson>>>(playerEpisodesRawJson)!!
|
val playerJson = tryParseJson<List<List<PlayerJson>>>(playerEpisodesRawJson)!!
|
||||||
playerJson.forEachIndexed { index, dub ->
|
playerJson.forEachIndexed { index, dub ->
|
||||||
if(dub[dataList[0].toInt()].code.contains("https://ashdi.vip")){
|
with(dub[dataList[0].toInt()].code) {
|
||||||
|
when {
|
||||||
|
contains("https://tortuga.wtf/vod/") -> {
|
||||||
M3u8Helper.generateM3u8(
|
M3u8Helper.generateM3u8(
|
||||||
source = decode(playerNamesArray[index]),
|
source = decode(playerNamesArray[index]),
|
||||||
streamUrl = AshdiExtractor().ParseM3U8(Jsoup.parse(dub[dataList[0].toInt()].code).select("iframe").attr("src")),
|
streamUrl = AshdiExtractor().ParseM3U8(Jsoup.parse(dub[dataList[0].toInt()].code).select("iframe")
|
||||||
|
.attr("src")),
|
||||||
|
referer = "https://tortuga.wtf/"
|
||||||
|
).forEach(callback)
|
||||||
|
}
|
||||||
|
contains("https://ashdi.vip/vod") -> {
|
||||||
|
M3u8Helper.generateM3u8(
|
||||||
|
source = decode(playerNamesArray[index]),
|
||||||
|
streamUrl = AshdiExtractor().ParseM3U8(Jsoup.parse(dub[dataList[0].toInt()].code).select("iframe")
|
||||||
|
.attr("src")),
|
||||||
referer = "https://qeruya.cyou"
|
referer = "https://qeruya.cyou"
|
||||||
).forEach(callback)
|
).forEach(callback)
|
||||||
}
|
}
|
||||||
|
else -> {}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue