diff --git a/src/all/foolslide/build.gradle b/src/all/foolslide/build.gradle index edffc1dc8..f71025d4f 100644 --- a/src/all/foolslide/build.gradle +++ b/src/all/foolslide/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: FoolSlide' pkgNameSuffix = "all.foolslide" extClass = '.FoolSlideFactory' - extVersionCode = 8 + extVersionCode = 9 libVersion = '1.2' } diff --git a/src/all/foolslide/src/eu/kanade/tachiyomi/extension/en/foolslide/FoolSlideFactory.kt b/src/all/foolslide/src/eu/kanade/tachiyomi/extension/en/foolslide/FoolSlideFactory.kt index 836efa195..ac93f9692 100644 --- a/src/all/foolslide/src/eu/kanade/tachiyomi/extension/en/foolslide/FoolSlideFactory.kt +++ b/src/all/foolslide/src/eu/kanade/tachiyomi/extension/en/foolslide/FoolSlideFactory.kt @@ -17,40 +17,41 @@ class FoolSlideFactory : SourceFactory { fun getAllFoolSlide(): List { return listOf( - JaminisBox(), - ChampionScans(), - HelveticaScans(), - SenseScans(), - SeaOtterScans(), - KireiCake(), - HiranoMoeScansBureau(), - SilentSky(), - Mangatellers(), - IskultripScans(), - PinkFatale(), - AnataNoMotokare(), - HatigarmScans(), - DeathTollScans(), - DKThias(), - MangaichiScanlationDivision(), - WorldThree(), - TheCatScans(), - AngelicScanlations(), - DokiFansubs(), - YuriIsm(), - AjiaNoScantrad(), - OneTimeScans(), - TsubasaSociety(), - Helheim(), - MangaScouts(), - StormInHeaven(), - Lilyreader(), - MidnightHaven(), - Russification(), - NieznaniReader(), - EvilFlowers(), - NaniScans(), - AkaiYuhiMunTeam() + JaminisBox(), + ChampionScans(), + HelveticaScans(), + SenseScans(), + SeaOtterScans(), + KireiCake(), + HiranoMoeScansBureau(), + SilentSky(), + Mangatellers(), + IskultripScans(), + PinkFatale(), + AnataNoMotokare(), + HatigarmScans(), + DeathTollScans(), + DKThias(), + MangaichiScanlationDivision(), + WorldThree(), + TheCatScans(), + AngelicScanlations(), + DokiFansubs(), + YuriIsm(), + AjiaNoScantrad(), + OneTimeScans(), + TsubasaSociety(), + Helheim(), + MangaScouts(), + StormInHeaven(), + Lilyreader(), + MidnightHaven(), + Russification(), + NieznaniReader(), + EvilFlowers(), + NaniScans(), + 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 + } +}