Added LupiTeam's FoolSlide (#612)

Added LupiTeam's FoolSlide
This commit is contained in:
FedericoHeichou 2018-11-26 17:35:32 +01:00 committed by Carlos
parent 058d5905f0
commit 38b2fc151b
2 changed files with 57 additions and 35 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: FoolSlide'
pkgNameSuffix = "all.foolslide"
extClass = '.FoolSlideFactory'
extVersionCode = 8
extVersionCode = 9
libVersion = '1.2'
}

View File

@ -50,7 +50,8 @@ fun getAllFoolSlide(): List<Source> {
NieznaniReader(),
EvilFlowers(),
NaniScans(),
AkaiYuhiMunTeam()
AkaiYuhiMunTeam(),
LupiTeam()
)
}
@ -179,3 +180,24 @@ class EvilFlowers : FoolSlide("Evil Flowers", "http://reader.evilflowers.com", "
class NaniScans : FoolSlide("NANI? SCANS", "https://reader.naniscans.xyz", "en")
class AkaiYuhiMunTeam : FoolSlide("AkaiYuhiMun team", "https://akaiyuhimun.ru", "ru", "/manga")
class LupiTeam : FoolSlide("LupiTeam", "https://lupiteam.tk", "it", "/reader") {
override fun mangaDetailsParse(document: Document): SManga {
val infoElement = document.select(mangaDetailsInfoSelector).first().text()
val manga = SManga.create()
manga.author = infoElement.substringAfter("Autore: ").substringBefore("Artista: ")
manga.artist = infoElement.substringAfter("Artista: ").substringBefore("Target: ")
val stato = infoElement.substringAfter("Stato: ").substringBefore("Trama: ").substring(0, 8)
manga.status = when (stato) {
"In corso" -> SManga.ONGOING
"Completa" -> SManga.COMPLETED
"Licenzia" -> SManga.LICENSED
else -> SManga.UNKNOWN
}
manga.description = infoElement.substringAfter("Trama: ")
manga.thumbnail_url = document.select(mangaDetailsThumbnailSelector).first()?.absUrl("src")
return manga
}
}