parent
bf6f2d916e
commit
63f5e69094
|
@ -596,6 +596,10 @@ object Crunchyroll {
|
|||
suspend fun datalabIntro(episodeId: String): DatalabIntro {
|
||||
val datalabIntroEndpoint = "/datalab-intro-v2/$episodeId.json"
|
||||
|
||||
/*
|
||||
* wtf crunchyroll, why do you return an xml error message when some data is missing,
|
||||
* this is a json endpoint. For fucks sake, return at least a valid json message.
|
||||
*/
|
||||
return try {
|
||||
val response: HttpResponse = requestGet(datalabIntroEndpoint, url = staticUrl)
|
||||
Json.decodeFromString(response.bodyAsText())
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
buildscript {
|
||||
ext.kotlin_version = "1.7.20"
|
||||
ext.ktor_version = "2.1.3"
|
||||
ext.ktor_version = "2.2.1"
|
||||
ext.exo_version = "2.18.2"
|
||||
repositories {
|
||||
google()
|
||||
|
|
Loading…
Reference in New Issue