Faster Bypass

This commit is contained in:
TECHTANIC 2022-12-30 10:25:53 +05:30 committed by GitHub
parent f26c659cf2
commit fc8a8eb551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class SkillShareProvider : MainAPI() { // all providers must be an instance of M
override var name = "SkillShare"
private val apiUrl = "https://www.skillshare.com/api/graphql"
private val bypassApiUrl = "https://skillshare-api.heckernohecking.repl.co"
private val bypassApiUrl = "https://skillshare.techtanic.xyz/id"
override val supportedTypes = setOf(TvType.Others)
override val hasChromecastSupport = true
@ -143,7 +143,7 @@ class SkillShareProvider : MainAPI() { // all providers must be an instance of M
override suspend fun load(url: String): LoadResponse? {
val data = parseJson<Data>(url)
val document = app.get(bypassApiUrl + "/${data.courseId}/0")
val document = app.get(bypassApiUrl + "/${data.courseId}")
.parsedSafe<BypassApiData>() ?: throw ErrorLoadingException("Invalid Json Response")
val title = data.title ?: ""
val poster = data.largeCoverUrl