Skip to content

Commit 075c744

Browse files
committed
HubCloud Improvement
1 parent dc2fc15 commit 075c744

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

  • library/src/commonMain/kotlin/com/lagradost/cloudstream3/extractors

library/src/commonMain/kotlin/com/lagradost/cloudstream3/extractors/HubCloud.kt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,16 @@ class HubCloud : ExtractorApi() {
137137
)
138138
}
139139

140+
text.contains("Mega Server", ignoreCase = true) -> {
141+
callback.invoke(
142+
newExtractorLink(
143+
"$referer [Mega Server]",
144+
"$referer [Mega Server] $labelExtras",
145+
link,
146+
) { this.quality = quality }
147+
)
148+
}
149+
140150
text.contains("10Gbps", ignoreCase = true) -> {
141151
var currentLink = link
142152
var redirectUrl: String?
@@ -187,7 +197,7 @@ class HubCloud : ExtractorApi() {
187197
private fun getBaseUrl(url: String): String {
188198
return try {
189199
URI(url).let { "${it.scheme}://${it.host}" }
190-
} catch (e: Exception) {
200+
} catch (_: Exception) {
191201
""
192202
}
193203
}

0 commit comments

Comments
 (0)