Lint fixes
This commit is contained in:
@ -7,11 +7,11 @@ class EmeraldFactory : SourceFactory {
|
||||
override fun createSources(): List<Source> = languages.map { Mangawindow(it.first, it.second) } + languages.map { Batoto(it.first, it.second) }
|
||||
}
|
||||
|
||||
class Mangawindow(tachiLang: String, siteLang: String)
|
||||
: Emerald("Mangawindow", "https://mangawindow.net", tachiLang, siteLang)
|
||||
class Mangawindow(tachiLang: String, siteLang: String) :
|
||||
Emerald("Mangawindow", "https://mangawindow.net", tachiLang, siteLang)
|
||||
|
||||
class Batoto(tachiLang: String, siteLang: String)
|
||||
: Emerald("Bato.to", "https://bato.to", tachiLang, siteLang)
|
||||
class Batoto(tachiLang: String, siteLang: String) :
|
||||
Emerald("Bato.to", "https://bato.to", tachiLang, siteLang)
|
||||
|
||||
private val languages = listOf(
|
||||
Pair("ar", "arabic"),
|
||||
|
@ -12,6 +12,9 @@ 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.HttpSource
|
||||
import java.util.ArrayList
|
||||
import kotlin.experimental.and
|
||||
import kotlin.experimental.xor
|
||||
import okhttp3.MediaType
|
||||
import okhttp3.OkHttpClient
|
||||
import okhttp3.Request
|
||||
@ -20,9 +23,6 @@ import okhttp3.Response
|
||||
import okhttp3.ResponseBody
|
||||
import org.json.JSONObject
|
||||
import rx.Observable
|
||||
import java.util.ArrayList
|
||||
import kotlin.experimental.and
|
||||
import kotlin.experimental.xor
|
||||
|
||||
/**
|
||||
* INKR source - same old MR code, though
|
||||
@ -303,7 +303,6 @@ class INKR : HttpSource() {
|
||||
|
||||
private class StatusFilter : Filter.TriState("Completed")
|
||||
|
||||
|
||||
private class SortBy : UriPartFilter("Sort by", arrayOf(
|
||||
Pair("Name", "name"),
|
||||
Pair("Rank", "rank")
|
||||
@ -351,5 +350,4 @@ class INKR : HttpSource() {
|
||||
Filter.Select<String>(displayName, vals.map { it.first }.toTypedArray()) {
|
||||
fun toUriPart() = vals[state].second
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -4,26 +4,25 @@ import com.github.salomonbrys.kotson.fromJson
|
||||
import com.google.gson.Gson
|
||||
import com.google.gson.JsonArray
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import eu.kanade.tachiyomi.source.model.SChapter
|
||||
import eu.kanade.tachiyomi.source.model.Page
|
||||
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 java.text.SimpleDateFormat
|
||||
import java.util.Calendar
|
||||
import java.util.Locale
|
||||
import kotlin.experimental.and
|
||||
import kotlin.experimental.xor
|
||||
import okhttp3.HttpUrl
|
||||
import okhttp3.MediaType
|
||||
import okhttp3.OkHttpClient
|
||||
import okhttp3.Request
|
||||
import okhttp3.Response
|
||||
import okhttp3.MediaType
|
||||
import okhttp3.ResponseBody
|
||||
import okhttp3.HttpUrl
|
||||
import org.jsoup.nodes.Document
|
||||
import org.jsoup.nodes.Element
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
import java.util.Calendar
|
||||
import kotlin.experimental.and
|
||||
import kotlin.experimental.xor
|
||||
|
||||
|
||||
class MangaRockEs : ParsedHttpSource() {
|
||||
|
||||
@ -311,5 +310,4 @@ class MangaRockEs : ParsedHttpSource() {
|
||||
Filter.Select<String>(displayName, vals.map { it.first }.toTypedArray()) {
|
||||
fun toUriPart() = vals[state].second
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,14 +5,10 @@ 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.model.MangasPage
|
||||
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
||||
import okhttp3.OkHttpClient
|
||||
import okhttp3.Response
|
||||
import org.json.JSONObject
|
||||
import org.jsoup.nodes.Document
|
||||
import org.jsoup.nodes.Element
|
||||
import org.json.JSONArray
|
||||
import org.json.JSONObject
|
||||
|
||||
class Kombatch : ParsedHttpSource() {
|
||||
override val name = "Kombatch"
|
||||
|
Reference in New Issue
Block a user