fix: Purge StreamSB extractor (#2042)
Co-authored-by: jmir1 <jhmiramon@gmail.com>
This commit is contained in:
@ -5,13 +5,8 @@ ext {
|
||||
extName = 'AnimeWorld India'
|
||||
pkgNameSuffix = 'all.animeworldindia'
|
||||
extClass = '.AnimeWorldIndiaFactory'
|
||||
extVersionCode = 2
|
||||
extVersionCode = 3
|
||||
libVersion = '13'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(':lib-streamsb-extractor'))
|
||||
}
|
||||
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -10,7 +10,6 @@ import eu.kanade.tachiyomi.animesource.model.SAnime
|
||||
import eu.kanade.tachiyomi.animesource.model.SEpisode
|
||||
import eu.kanade.tachiyomi.animesource.model.Video
|
||||
import eu.kanade.tachiyomi.animesource.online.ParsedAnimeHttpSource
|
||||
import eu.kanade.tachiyomi.lib.streamsbextractor.StreamSBExtractor
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.util.asJsoup
|
||||
import kotlinx.serialization.json.Json
|
||||
@ -229,20 +228,6 @@ open class AnimeWorldIndia(
|
||||
videoList.addAll(videos)
|
||||
}
|
||||
|
||||
// StreamSB
|
||||
|
||||
filterLanguages.filter {
|
||||
it.jsonObject["server"].toString()
|
||||
.drop(1).dropLast(1)
|
||||
.compareTo("Streamsb") == 0
|
||||
}.forEach {
|
||||
val url = "https://cloudemb.com/e/${it.jsonObject["url"].toString()
|
||||
.drop(1).dropLast(1)
|
||||
.substringAfter("id=")}.html"
|
||||
val videos = StreamSBExtractor(client).videosFromUrl(url, headers)
|
||||
videoList.addAll(videos)
|
||||
}
|
||||
|
||||
return videoList
|
||||
}
|
||||
|
||||
@ -279,8 +264,8 @@ open class AnimeWorldIndia(
|
||||
ListPreference(screen.context).apply {
|
||||
key = "preferred_server"
|
||||
title = "Preferred server"
|
||||
entries = arrayOf("MyStream", "StreamSB")
|
||||
entryValues = arrayOf("MyStream", "StreamSB")
|
||||
entries = arrayOf("MyStream")
|
||||
entryValues = arrayOf("MyStream")
|
||||
setDefaultValue("MyStream")
|
||||
summary = "%s"
|
||||
|
||||
|
@ -7,12 +7,11 @@ ext {
|
||||
extName = 'Jav Guru'
|
||||
pkgNameSuffix = 'all.javguru'
|
||||
extClass = '.JavGuru'
|
||||
extVersionCode = 3
|
||||
extVersionCode = 4
|
||||
containsNsfw = true
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(':lib-streamsb-extractor'))
|
||||
implementation(project(':lib-streamtape-extractor'))
|
||||
implementation(project(':lib-dood-extractor'))
|
||||
implementation(project(':lib-mixdrop-extractor'))
|
||||
|
@ -11,7 +11,6 @@ import eu.kanade.tachiyomi.animesource.model.Video
|
||||
import eu.kanade.tachiyomi.animesource.online.AnimeHttpSource
|
||||
import eu.kanade.tachiyomi.lib.doodextractor.DoodExtractor
|
||||
import eu.kanade.tachiyomi.lib.mixdropextractor.MixDropExtractor
|
||||
import eu.kanade.tachiyomi.lib.streamsbextractor.StreamSBExtractor
|
||||
import eu.kanade.tachiyomi.lib.streamtapeextractor.StreamTapeExtractor
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.network.asObservable
|
||||
@ -268,7 +267,6 @@ class JavGuru : AnimeHttpSource() {
|
||||
return redirectUrl
|
||||
}
|
||||
|
||||
private val streamSbExtractor by lazy { StreamSBExtractor(client) }
|
||||
private val streamTapeExtractor by lazy { StreamTapeExtractor(client) }
|
||||
private val doodExtractor by lazy { DoodExtractor(client) }
|
||||
private val mixDropExtractor by lazy { MixDropExtractor(client) }
|
||||
@ -299,10 +297,6 @@ class JavGuru : AnimeHttpSource() {
|
||||
emTurboExtractor.getVideos(hosterUrl)
|
||||
}
|
||||
|
||||
STREAM_SB_DOMAINS.any { it in hosterUrl } -> {
|
||||
streamSbExtractor.videosFromUrl(hosterUrl, headers)
|
||||
}
|
||||
|
||||
else -> {
|
||||
emptyList()
|
||||
}
|
||||
@ -349,16 +343,6 @@ class JavGuru : AnimeHttpSource() {
|
||||
private val IFRAME_OLID_REGEX = Regex("""var OLID = '([^']+)'""")
|
||||
private val IFRAME_OLID_URL = Regex("""src="([^"]+)"""")
|
||||
|
||||
private val STREAM_SB_DOMAINS = listOf(
|
||||
"sbhight", "sbrity", "sbembed.com", "sbembed1.com", "sbplay.org",
|
||||
"sbvideo.net", "streamsb.net", "sbplay.one", "cloudemb.com",
|
||||
"playersb.com", "tubesb.com", "sbplay1.com", "embedsb.com",
|
||||
"watchsb.com", "sbplay2.com", "japopav.tv", "viewsb.com",
|
||||
"sbfast", "sbfull.com", "javplaya.com", "ssbstream.net",
|
||||
"p1ayerjavseen.com", "sbthe.com", "vidmovie.xyz", "sbspeed.com",
|
||||
"streamsss.net", "sblanh.com", "tvmshow.com", "sbanh.com",
|
||||
"streamovies.xyz", "sblona.com", "likessb.com",
|
||||
)
|
||||
private val MIXDROP_DOMAINS = listOf(
|
||||
"mixdrop",
|
||||
"mixdroop",
|
||||
|
Reference in New Issue
Block a user