Skip to content

Commit 2bed79b

Browse files
authored
Update Gofile.kt (#600)
1 parent a5450e5 commit 2bed79b

File tree

1 file changed

+2
-2
lines changed
  • app/src/main/java/com/lagradost/cloudstream3/extractors

1 file changed

+2
-2
lines changed

app/src/main/java/com/lagradost/cloudstream3/extractors/Gofile.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ open class Gofile : ExtractorApi() {
1919
subtitleCallback: (SubtitleFile) -> Unit,
2020
callback: (ExtractorLink) -> Unit
2121
) {
22-
val id = Regex("/(?:\\?c=|d/)([\\da-zA-Z]+)").find(url)?.groupValues?.get(1)
22+
val id = Regex("/(?:\\?c=|d/)([\\da-zA-Z-]+)").find(url)?.groupValues?.get(1)
2323
val token = app.get("$mainApi/createAccount").parsedSafe<Account>()?.data?.get("token")
2424
val websiteToken = app.get("$mainUrl/dist/js/alljs.js").text.let {
2525
Regex("websiteToken\\s*=\\s*\"([^\"]+)").find(it)?.groupValues?.get(1)
@@ -59,4 +59,4 @@ open class Gofile : ExtractorApi() {
5959
@JsonProperty("data") val data: Data? = null,
6060
)
6161

62-
}
62+
}

0 commit comments

Comments
 (0)