Add extension: AnimeDao (#1284)

This commit is contained in:
Secozzi
2023-02-17 20:52:59 +01:00
committed by GitHub
parent cc7d9f0c3c
commit f4cbcef2dc
14 changed files with 872 additions and 1 deletions

View File

@ -26,8 +26,9 @@ class StreamSBExtractor(private val client: OkHttpClient) {
// animension, asianload and dramacool uses "common = false"
private fun fixUrl(url: String, common: Boolean): String {
val sbUrl = url.substringBefore("/e/")
val sbUrl = url.substringBefore("/e/").substringBefore("/embed-")
val id = url.substringAfter("/e/")
.substringAfter("/embed-")
.substringBefore("?")
.substringBefore(".html")
return if (common) {