exts: Drop debug logs
This commit is contained in:
parent
df52d63f0e
commit
a6dbf37281
10 changed files with 30 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 4
|
||||
version = 5
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
package com.lagradost
|
||||
|
||||
import android.util.Log
|
||||
import com.lagradost.cloudstream3.app
|
||||
|
||||
class Tracker {
|
||||
suspend fun getTracker(title: String?, type: String?, year: Int?): Tracker {
|
||||
val res = app.get("https://api.consumet.org/meta/anilist/$title")
|
||||
.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(
|
||||
title,
|
||||
true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 3
|
||||
version = 4
|
||||
|
||||
dependencies {
|
||||
implementation("com.google.code.gson:gson:2.9.0")
|
||||
|
|
|
@ -1,11 +1,24 @@
|
|||
package com.lagradost
|
||||
|
||||
import android.util.Log
|
||||
import com.google.gson.Gson
|
||||
import com.lagradost.cloudstream3.*
|
||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addAniListId
|
||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addMalId
|
||||
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
|
||||
import com.lagradost.cloudstream3.AnimeSearchResponse
|
||||
import com.lagradost.cloudstream3.DubStatus
|
||||
import com.lagradost.cloudstream3.Episode
|
||||
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.M3u8Helper
|
||||
import org.jsoup.nodes.Element
|
||||
|
@ -99,7 +112,7 @@ class BambooUAProvider : MainAPI() {
|
|||
// Parse info
|
||||
// val json = tryParseJson<JSONModel>(document.select("script[type*=json]").html())
|
||||
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
|
||||
|
||||
|
@ -187,7 +200,7 @@ class BambooUAProvider : MainAPI() {
|
|||
if(data.startsWith("https://bambooua.com")){
|
||||
val document = app.get(data).document
|
||||
document.select("span.mr-3").forEach {
|
||||
Log.d("load-debug", it.attr("data-file"))
|
||||
// Log.d("load-debug", it.attr("data-file"))
|
||||
M3u8Helper.generateM3u8(
|
||||
source = it.attr("data-title"),
|
||||
streamUrl = it.attr("data-file"),
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 2
|
||||
version = 3
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package com.lagradost
|
||||
|
||||
import android.util.Log
|
||||
import com.lagradost.cloudstream3.Episode
|
||||
import com.lagradost.cloudstream3.HomePageResponse
|
||||
import com.lagradost.cloudstream3.LoadResponse
|
||||
|
@ -115,7 +114,7 @@ class KinoTronProvider : MainAPI() {
|
|||
val episodes = mutableListOf<Episode>()
|
||||
val playerUrl = document.select("div.video-box iframe").attr("data-src")
|
||||
if (playerUrl.contains("/vod/")) { tvType = TvType.Movie }
|
||||
Log.d("load-debug", playerUrl)
|
||||
// Log.d("load-debug", playerUrl)
|
||||
// Return to app
|
||||
// Parse Episodes as Series
|
||||
return if (tvType == TvType.TvSeries || tvType == TvType.Anime) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 2
|
||||
version = 3
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -74,12 +74,11 @@ class KinoVezhaProvider : MainAPI() {
|
|||
override suspend fun load(url: String): LoadResponse {
|
||||
val document = app.get(url).document
|
||||
|
||||
|
||||
// Parse info
|
||||
val title = document.select(".inner-page__title").text()
|
||||
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() }
|
||||
Log.d("load-debug", tags.toString())
|
||||
val tags = document.select(".inner-page__list li")[1].select("a").map { it.text() }
|
||||
// Log.d("load-debug", tags.toString())
|
||||
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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 2
|
||||
version = 3
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
package com.lagradost
|
||||
|
||||
import android.util.Log
|
||||
import com.lagradost.cloudstream3.app
|
||||
|
||||
class Tracker {
|
||||
suspend fun getTracker(title: String?, type: String?, year: Int?): Tracker {
|
||||
val res = app.get("https://api.consumet.org/meta/anilist/$title")
|
||||
.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(
|
||||
title,
|
||||
true
|
||||
|
|
Loading…
Reference in a new issue