SkillShare Provider Faster Bypass (#74)

* Faster Bypass

* bump

Co-authored-by: Cloudburst <18114966+C10udburst@users.noreply.github.com>
This commit is contained in:
TECHTANIC 2022-12-30 09:30:30 +01:00 committed by GitHub
parent f26c659cf2
commit 23f0ee0c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 3
version = 4
cloudstream {

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