Change MangasProject name to the new one. (#2488)

This commit is contained in:
Alessandro Jean 2020-03-24 07:15:00 -03:00 committed by GitHub
parent c780173658
commit 793f9bd88a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 5 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: mangásPROJECT'
pkgNameSuffix = 'pt.mangasproject'
extClass = '.MangasProjectFactory'
extVersionCode = 7
extVersionCode = 8
libVersion = '1.2'
}

View File

@ -10,13 +10,18 @@ import eu.kanade.tachiyomi.network.POST
import eu.kanade.tachiyomi.source.model.*
import eu.kanade.tachiyomi.source.online.HttpSource
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 rx.Observable
import java.lang.Exception
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.*
import java.util.Locale
import java.util.concurrent.TimeUnit
abstract class MangasProject(override val name: String,

View File

@ -5,10 +5,17 @@ import eu.kanade.tachiyomi.source.SourceFactory
class MangasProjectFactory : SourceFactory {
override fun createSources(): List<Source> = listOf(
MangasProjectOriginal(),
LeitorNet(),
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")