File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
C3TV/src/main/kotlin/com/bnyro Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ open class MediaCCC : MainAPI() {
4141 private fun Event.toSearchResponse (): SearchResponse {
4242 return newMovieSearchResponse(
4343 name = this .title,
44- url = Link ( this .frontendLink, this .guid).toJson() ,
44+ url = this .frontendLink,
4545 type = TvType .Others ,
4646 ) {
4747 this .posterUrl = this @toSearchResponse.thumbUrl
@@ -58,9 +58,9 @@ open class MediaCCC : MainAPI() {
5858 }
5959
6060 override suspend fun load (url : String ): LoadResponse ? {
61- val guid = parseJson< Link >( url).guid
61+ val slug = url.substringAfterLast( " / " )
6262
63- val response = app.get(" ${mainUrl} /public/events/${guid } " )
63+ val response = app.get(" ${mainUrl} /public/events/${slug } " )
6464 .parsed<Event >()
6565
6666 return newMovieLoadResponse(
@@ -112,11 +112,6 @@ open class MediaCCC : MainAPI() {
112112 return true
113113 }
114114
115- data class Link (
116- val link : String? = null ,
117- val guid : String? = null ,
118- )
119-
120115 data class EventsResponse (
121116 val events : List <Event >,
122117 )
You can’t perform that action at this time.
0 commit comments