Remove logging statements (#946)

Remove logging statements
This commit is contained in:
Eugene 2019-03-20 04:50:39 -04:00 committed by Carlos
parent 6c46cc395c
commit 5a6ff3fa78
4 changed files with 33 additions and 32 deletions

View File

@ -1,18 +1,18 @@
package eu.kanade.tachiyomi.extension.es.ikuhentai package eu.kanade.tachiyomi.extension.es.ikuhentai
import android.net.Uri
import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.Filter
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.online.ParsedHttpSource import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import okhttp3.* import okhttp3.Headers
import okhttp3.HttpUrl
import okhttp3.OkHttpClient
import okhttp3.Request
import org.jsoup.nodes.Document import org.jsoup.nodes.Document
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
import java.text.SimpleDateFormat
import java.util.*
import eu.kanade.tachiyomi.source.model.*
import java.text.ParseException
import org.jsoup.nodes.DataNode
import android.util.Log
class Ikuhentai : ParsedHttpSource() { class Ikuhentai : ParsedHttpSource() {
override val name = "Ikuhentai" override val name = "Ikuhentai"
@ -143,13 +143,11 @@ class Ikuhentai : ParsedHttpSource() {
val urlElement = element.select("a").first() val urlElement = element.select("a").first()
var url = urlElement.attr("href") var url = urlElement.attr("href")
url = url.replace("/p/1","") url = url.replace("/p/1","")
url = url+"?style=list" url += "?style=list"
Log.d("URL", url)
val chapter = SChapter.create() val chapter = SChapter.create()
chapter.setUrlWithoutDomain(url) chapter.setUrlWithoutDomain(url)
chapter.name = urlElement.text() chapter.name = urlElement.text()
return chapter return chapter
} }
@ -165,7 +163,6 @@ class Ikuhentai : ParsedHttpSource() {
} }
override fun pageListParse(document: Document): List<Page> { override fun pageListParse(document: Document): List<Page> {
val pages = mutableListOf<Page>() val pages = mutableListOf<Page>()
var i = 0 var i = 0
document.select("div.reading-content * img").forEach { element -> document.select("div.reading-content * img").forEach { element ->
@ -199,10 +196,6 @@ class Ikuhentai : ParsedHttpSource() {
Pair("Nuevo", "new-manga") Pair("Nuevo", "new-manga")
)) ))
private class Genre(name: String, val id: String = name) : Filter.TriState(name) private class Genre(name: String, val id: String = name) : Filter.TriState(name)
private class GenreList(genres: List<Genre>) : Filter.Group<Genre>("Genres", genres) private class GenreList(genres: List<Genre>) : Filter.Group<Genre>("Genres", genres)
private class Status(name: String, val id: String = name) : Filter.TriState(name) private class Status(name: String, val id: String = name) : Filter.TriState(name)

View File

@ -1,15 +1,21 @@
package eu.kanade.tachiyomi.extension.id.komikgo package eu.kanade.tachiyomi.extension.id.komikgo
import java.util.*
import android.util.Log
import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.GET
import java.text.ParseException import eu.kanade.tachiyomi.source.model.Filter
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.online.ParsedHttpSource import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import okhttp3.* import okhttp3.Headers
import okhttp3.HttpUrl
import okhttp3.OkHttpClient
import okhttp3.Request
import org.jsoup.nodes.Document import org.jsoup.nodes.Document
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
import java.text.ParseException
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import eu.kanade.tachiyomi.source.model.* import java.util.Locale
class Komikgo : ParsedHttpSource() { class Komikgo : ParsedHttpSource() {
@ -101,13 +107,11 @@ class Komikgo : ParsedHttpSource() {
is TextField -> url.addQueryParameter(filter.key, filter.state) is TextField -> url.addQueryParameter(filter.key, filter.state)
} }
} }
Log.d("TAG", url.toString())
return GET(url.toString(), headers) return GET(url.toString(), headers)
} }
// max 200 results // max 200 results
override fun mangaDetailsParse(document: Document): SManga { override fun mangaDetailsParse(document: Document): SManga {
@ -285,4 +289,4 @@ class Komikgo : ParsedHttpSource() {
fun toUriPart() = vals[state].second fun toUriPart() = vals[state].second
} }
} }

View File

@ -1,8 +1,11 @@
package eu.kanade.tachiyomi.extension.vi.blogtruyen package eu.kanade.tachiyomi.extension.vi.blogtruyen
import android.util.Log
import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.* import eu.kanade.tachiyomi.source.model.Filter
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.online.ParsedHttpSource import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import okhttp3.HttpUrl import okhttp3.HttpUrl
import okhttp3.OkHttpClient import okhttp3.OkHttpClient
@ -88,7 +91,6 @@ class Blogtruyen : ParsedHttpSource() {
url.addQueryParameter("txt", query) url.addQueryParameter("txt", query)
if (!aut.isEmpty()) url.addQueryParameter("aut", aut) if (!aut.isEmpty()) url.addQueryParameter("aut", aut)
url.addQueryParameter("p", page.toString()) url.addQueryParameter("p", page.toString())
Log.i("tachiyomi", url.toString())
return GET(url.toString().replace("m.", ""), headers) return GET(url.toString().replace("m.", ""), headers)
} }

View File

@ -1,8 +1,11 @@
package eu.kanade.tachiyomi.extension.vi.iutruyentranh package eu.kanade.tachiyomi.extension.vi.iutruyentranh
import android.util.Log
import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.* import eu.kanade.tachiyomi.source.model.Filter
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.online.ParsedHttpSource import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import okhttp3.HttpUrl import okhttp3.HttpUrl
import okhttp3.OkHttpClient import okhttp3.OkHttpClient
@ -74,7 +77,6 @@ class Iutruyentranh : ParsedHttpSource() {
if (genres.isNotEmpty()) url.addQueryParameter("genres", genres.joinToString(",")) if (genres.isNotEmpty()) url.addQueryParameter("genres", genres.joinToString(","))
if (genresEx.isNotEmpty()) url.addQueryParameter("genres-exclude", genresEx.joinToString(",")) if (genresEx.isNotEmpty()) url.addQueryParameter("genres-exclude", genresEx.joinToString(","))
Log.i("tachiyomi", url.toString())
return GET(url.toString(), headers) return GET(url.toString(), headers)
} }
@ -198,4 +200,4 @@ class Iutruyentranh : ParsedHttpSource() {
Genre("Yaoi"), Genre("Yaoi"),
Genre("Yuri") Genre("Yuri")
) )
} }