mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fix: StreamTape extraction (#171)
This commit is contained in:
parent
e10ded7b56
commit
5a020ab202
1 changed files with 3 additions and 4 deletions
|
@ -11,14 +11,13 @@ class StreamTape : ExtractorApi() {
|
|||
override val mainUrl: String = "https://streamtape.com"
|
||||
override val requiresReferer = false
|
||||
|
||||
// Because they add concatenation to fuck up scrapers, DON'T LET LAG CODE ANYTHING
|
||||
private val linkRegex =
|
||||
Regex("""(i(|" \+ ')d(|" \+ ')=.*?&(|" \+ ')e(|" \+ ')x(|" \+ ')p(|" \+ ')i(|" \+ ')r(|" \+ ')e(|" \+ ')s(|" \+ ')=.*?&(|" \+ ')i(|" \+ ')p(|" \+ ')=.*?&(|" \+ ')t(|" \+ ')o(|" \+ ')k(|" \+ ')e(|" \+ ')n(|" \+ ')=.*)'""")
|
||||
Regex("""'robotlink'\)\.innerHTML = '(.+?)'\+ \('(.+?)'\)""")
|
||||
|
||||
override fun getUrl(url: String, referer: String?): List<ExtractorLink>? {
|
||||
with(get(url)) {
|
||||
linkRegex.find(this.text)?.let {
|
||||
val extractedUrl = "https://streamtape.com/get_video?${it.groupValues[1]}".replace("""" + '""", "")
|
||||
val extractedUrl = "https:${it.groups[1]!!.value + it.groups[2]!!.value.substring(3,)}"
|
||||
return listOf(
|
||||
ExtractorLink(
|
||||
name,
|
||||
|
@ -32,4 +31,4 @@ class StreamTape : ExtractorApi() {
|
|||
}
|
||||
return null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue