Change MangasProject name to the new one. (#2488)
This commit is contained in:
parent
c780173658
commit
793f9bd88a
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: mangásPROJECT'
|
appName = 'Tachiyomi: mangásPROJECT'
|
||||||
pkgNameSuffix = 'pt.mangasproject'
|
pkgNameSuffix = 'pt.mangasproject'
|
||||||
extClass = '.MangasProjectFactory'
|
extClass = '.MangasProjectFactory'
|
||||||
extVersionCode = 7
|
extVersionCode = 8
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,13 +10,18 @@ import eu.kanade.tachiyomi.network.POST
|
||||||
import eu.kanade.tachiyomi.source.model.*
|
import eu.kanade.tachiyomi.source.model.*
|
||||||
import eu.kanade.tachiyomi.source.online.HttpSource
|
import eu.kanade.tachiyomi.source.online.HttpSource
|
||||||
import eu.kanade.tachiyomi.util.asJsoup
|
import eu.kanade.tachiyomi.util.asJsoup
|
||||||
import okhttp3.*
|
import okhttp3.FormBody
|
||||||
|
import okhttp3.Headers
|
||||||
|
import okhttp3.Interceptor
|
||||||
|
import okhttp3.OkHttpClient
|
||||||
|
import okhttp3.Request
|
||||||
|
import okhttp3.Response
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
import rx.Observable
|
import rx.Observable
|
||||||
import java.lang.Exception
|
import java.lang.Exception
|
||||||
import java.text.ParseException
|
import java.text.ParseException
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.*
|
import java.util.Locale
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
abstract class MangasProject(override val name: String,
|
abstract class MangasProject(override val name: String,
|
||||||
|
|
|
@ -5,10 +5,17 @@ import eu.kanade.tachiyomi.source.SourceFactory
|
||||||
|
|
||||||
class MangasProjectFactory : SourceFactory {
|
class MangasProjectFactory : SourceFactory {
|
||||||
override fun createSources(): List<Source> = listOf(
|
override fun createSources(): List<Source> = listOf(
|
||||||
MangasProjectOriginal(),
|
LeitorNet(),
|
||||||
MangaLivre()
|
MangaLivre()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
class MangasProjectOriginal : MangasProject("mangásPROJECT", "https://leitor.net")
|
class LeitorNet : MangasProject("Leitor.net", "https://leitor.net") {
|
||||||
|
// Use the old generated id when the source did have the name "mangásPROJECT" and
|
||||||
|
// did have mangas in their catalogue. Now they "only have webtoons" and
|
||||||
|
// became a different website, but they still use the same structure.
|
||||||
|
// Existing mangas and other titles in the library still work.
|
||||||
|
override val id: Long = 2225174659569980836
|
||||||
|
}
|
||||||
|
|
||||||
class MangaLivre : MangasProject("MangaLivre", "https://mangalivre.net")
|
class MangaLivre : MangasProject("MangaLivre", "https://mangalivre.net")
|
||||||
|
|
Loading…
Reference in New Issue