Skip to content

Commit

Permalink
AllAnime: Let's not use Ak source for now
Browse files Browse the repository at this point in the history
Need to handle audio source is exo player later
  • Loading branch information
fakeyatogod committed May 17, 2023
1 parent d2fe9be commit beb9a1f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ class AllAnimeSource : AnimeSource {
println(sourceUrlHolder)
val sourceUrl = sourceUrlHolder.asJsonObject["sourceUrl"].asString
println(sourceUrl)
if (isThese(sourceUrl)) continue
val sourceName = sourceUrlHolder.asJsonObject["sourceName"].asString
println(sourceName)
if (isThese(sourceUrl) || isThese(sourceName)) continue
if (sourceUrl.contains("apivtwo")) {
val apiUrl = "https://allanimenews.com"
println(apiUrl)
Expand Down Expand Up @@ -181,7 +183,7 @@ class AllAnimeSource : AnimeSource {
}

private fun isThese(url: String): Boolean {
val unwantedSources = listOf("goload", "streamsb", "ok.ru", "streamlare", "mp4upload")
val unwantedSources = listOf("goload", "streamsb", "ok.ru", "streamlare", "mp4upload","Ak")
unwantedSources.forEach { source ->
if (url.contains(source)) return true
}
Expand Down

0 comments on commit beb9a1f

Please sign in to comment.