File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
library/src/commonMain/kotlin/com/lagradost/cloudstream3/extractors Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,10 @@ open class AStreamHub : ExtractorApi() {
1515
1616 override suspend fun getUrl (url : String , referer : String? ): List <ExtractorLink > {
1717 val sources = mutableListOf<ExtractorLink >()
18- app.get(url).document.selectFirst(" body > script" )?.let { script ->
19- val text = script.html()
20- Log .i(" Dev" , " text => $text " )
21- if (text.isNotBlank()) {
22- val m3link = " (?<=file:)(.*)(?=,)" .toRegex().find(text)
18+ app.get(url).document.selectFirst(" body > script" )?.data()?.let { script ->
19+ Log .i(" Dev" , " script => $script " )
20+ if (script.isNotBlank()) {
21+ val m3link = " (?<=file:)(.*)(?=,)" .toRegex().find(script)
2322 ?.groupValues?.get(0 )?.trim()?.trim(' "' ) ? : " "
2423 Log .i(" Dev" , " m3link => $m3link " )
2524 if (m3link.isNotBlank()) {
@@ -39,5 +38,4 @@ open class AStreamHub : ExtractorApi() {
3938 }
4039 return sources
4140 }
42-
4341}
You can’t perform that action at this time.
0 commit comments