exts: Drop debug logs

This commit is contained in:
CakesTwix 2023-08-04 20:56:42 +03:00
parent df52d63f0e
commit a6dbf37281
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825
10 changed files with 30 additions and 21 deletions

View file

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

View file

@ -1,13 +1,12 @@
package com.lagradost package com.lagradost
import android.util.Log
import com.lagradost.cloudstream3.app import com.lagradost.cloudstream3.app
class Tracker { class Tracker {
suspend fun getTracker(title: String?, type: String?, year: Int?): Tracker { suspend fun getTracker(title: String?, type: String?, year: Int?): Tracker {
val res = app.get("https://api.consumet.org/meta/anilist/$title") val res = app.get("https://api.consumet.org/meta/anilist/$title")
.parsedSafe<AniSearch>()?.results?.find { media -> .parsedSafe<AniSearch>()?.results?.find { media ->
Log.d("load-debug", media.toString()) // Log.d("load-debug", media.toString())
(media.title?.english.equals(title, true) || media.title?.romaji.equals( (media.title?.english.equals(title, true) || media.title?.romaji.equals(
title, title,
true true

View file

@ -1,5 +1,5 @@
// use an integer for version numbers // use an integer for version numbers
version = 3 version = 4
dependencies { dependencies {
implementation("com.google.code.gson:gson:2.9.0") implementation("com.google.code.gson:gson:2.9.0")

View file

@ -1,11 +1,24 @@
package com.lagradost package com.lagradost
import android.util.Log
import com.google.gson.Gson import com.google.gson.Gson
import com.lagradost.cloudstream3.* import com.lagradost.cloudstream3.AnimeSearchResponse
import com.lagradost.cloudstream3.LoadResponse.Companion.addAniListId import com.lagradost.cloudstream3.DubStatus
import com.lagradost.cloudstream3.LoadResponse.Companion.addMalId import com.lagradost.cloudstream3.Episode
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson import com.lagradost.cloudstream3.HomePageResponse
import com.lagradost.cloudstream3.LoadResponse
import com.lagradost.cloudstream3.MainAPI
import com.lagradost.cloudstream3.MainPageRequest
import com.lagradost.cloudstream3.SearchResponse
import com.lagradost.cloudstream3.SubtitleFile
import com.lagradost.cloudstream3.TvType
import com.lagradost.cloudstream3.addDubStatus
import com.lagradost.cloudstream3.addEpisodes
import com.lagradost.cloudstream3.app
import com.lagradost.cloudstream3.mainPageOf
import com.lagradost.cloudstream3.newAnimeLoadResponse
import com.lagradost.cloudstream3.newAnimeSearchResponse
import com.lagradost.cloudstream3.newHomePageResponse
import com.lagradost.cloudstream3.newMovieLoadResponse
import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.M3u8Helper import com.lagradost.cloudstream3.utils.M3u8Helper
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
@ -99,7 +112,7 @@ class BambooUAProvider : MainAPI() {
// Parse info // Parse info
// val json = tryParseJson<JSONModel>(document.select("script[type*=json]").html()) // val json = tryParseJson<JSONModel>(document.select("script[type*=json]").html())
val gJson = Gson().fromJson(document.select("script[type*=json]").html(), JSONModel::class.java) val gJson = Gson().fromJson(document.select("script[type*=json]").html(), JSONModel::class.java)
Log.d("load-debug-json", gJson.graph[0].name) // Log.d("load-debug-json", gJson.graph[0].name)
val title = gJson.graph[0].name val title = gJson.graph[0].name
@ -187,7 +200,7 @@ class BambooUAProvider : MainAPI() {
if(data.startsWith("https://bambooua.com")){ if(data.startsWith("https://bambooua.com")){
val document = app.get(data).document val document = app.get(data).document
document.select("span.mr-3").forEach { document.select("span.mr-3").forEach {
Log.d("load-debug", it.attr("data-file")) // Log.d("load-debug", it.attr("data-file"))
M3u8Helper.generateM3u8( M3u8Helper.generateM3u8(
source = it.attr("data-title"), source = it.attr("data-title"),
streamUrl = it.attr("data-file"), streamUrl = it.attr("data-file"),

View file

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

View file

@ -1,6 +1,5 @@
package com.lagradost package com.lagradost
import android.util.Log
import com.lagradost.cloudstream3.Episode import com.lagradost.cloudstream3.Episode
import com.lagradost.cloudstream3.HomePageResponse import com.lagradost.cloudstream3.HomePageResponse
import com.lagradost.cloudstream3.LoadResponse import com.lagradost.cloudstream3.LoadResponse
@ -115,7 +114,7 @@ class KinoTronProvider : MainAPI() {
val episodes = mutableListOf<Episode>() val episodes = mutableListOf<Episode>()
val playerUrl = document.select("div.video-box iframe").attr("data-src") val playerUrl = document.select("div.video-box iframe").attr("data-src")
if (playerUrl.contains("/vod/")) { tvType = TvType.Movie } if (playerUrl.contains("/vod/")) { tvType = TvType.Movie }
Log.d("load-debug", playerUrl) // Log.d("load-debug", playerUrl)
// Return to app // Return to app
// Parse Episodes as Series // Parse Episodes as Series
return if (tvType == TvType.TvSeries || tvType == TvType.Anime) { return if (tvType == TvType.TvSeries || tvType == TvType.Anime) {

View file

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

View file

@ -74,12 +74,11 @@ class KinoVezhaProvider : MainAPI() {
override suspend fun load(url: String): LoadResponse { override suspend fun load(url: String): LoadResponse {
val document = app.get(url).document val document = app.get(url).document
// Parse info // Parse info
val title = document.select(".inner-page__title").text() val title = document.select(".inner-page__title").text()
val poster = mainUrl + document.select(".img-fit-cover img").attr("src") val poster = mainUrl + document.select(".img-fit-cover img").attr("src")
var tags = document.select(".inner-page__list li")[1].select("a").map { it.text() } val tags = document.select(".inner-page__list li")[1].select("a").map { it.text() }
Log.d("load-debug", tags.toString()) // Log.d("load-debug", tags.toString())
val year = document.select(".inner-page__list li")[0].select("a").text().toIntOrNull() val year = document.select(".inner-page__list li")[0].select("a").text().toIntOrNull()
val tvType = if(tags.contains("Мультсеріали") or tags.contains("Серіали")) TvType.TvSeries else TvType.Movie val tvType = if(tags.contains("Мультсеріали") or tags.contains("Серіали")) TvType.TvSeries else TvType.Movie

View file

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

View file

@ -1,13 +1,12 @@
package com.lagradost package com.lagradost
import android.util.Log
import com.lagradost.cloudstream3.app import com.lagradost.cloudstream3.app
class Tracker { class Tracker {
suspend fun getTracker(title: String?, type: String?, year: Int?): Tracker { suspend fun getTracker(title: String?, type: String?, year: Int?): Tracker {
val res = app.get("https://api.consumet.org/meta/anilist/$title") val res = app.get("https://api.consumet.org/meta/anilist/$title")
.parsedSafe<AniSearch>()?.results?.find { media -> .parsedSafe<AniSearch>()?.results?.find { media ->
Log.d("load-debug", media.toString()) // Log.d("load-debug", media.toString())
(media.title?.english.equals(title, true) || media.title?.romaji.equals( (media.title?.english.equals(title, true) || media.title?.romaji.equals(
title, title,
true true