Madara update (#5161)

add and remove source
This commit is contained in:
Riztard Lanthorn 2020-12-17 19:20:48 +07:00 committed by GitHub
parent fd9cd72524
commit 1f3c321bb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Madara (multiple sources)' extName = 'Madara (multiple sources)'
pkgNameSuffix = "all.madara" pkgNameSuffix = "all.madara"
extClass = '.MadaraFactory' extClass = '.MadaraFactory'
extVersionCode = 158 extVersionCode = 159
libVersion = '1.2' libVersion = '1.2'
containsNsfw = true containsNsfw = true
} }

View File

@ -39,6 +39,7 @@ class MadaraFactory : SourceFactory {
ArazNovel(), ArazNovel(),
AsgardTeam(), AsgardTeam(),
AstralLibrary(), AstralLibrary(),
Atikrost(),
Azora(), Azora(),
Bakaman(), Bakaman(),
BestManga(), BestManga(),
@ -168,11 +169,13 @@ class MadaraFactory : SourceFactory {
PrimeManga(), PrimeManga(),
QueensManga(), QueensManga(),
RaiderScans(), RaiderScans(),
RandomTranslations(),
ReadManhua(), ReadManhua(),
RenaScans(), RenaScans(),
RuyaManga(), RuyaManga(),
S2Manga(), S2Manga(),
Skymanga(), SpookyScanlations(),
StageComics(),
TheTopComic(), TheTopComic(),
ThreeSixtyFiveManga(), ThreeSixtyFiveManga(),
ToonPoint(), ToonPoint(),
@ -218,6 +221,24 @@ class MadaraFactory : SourceFactory {
) )
} }
class StageComics : Madara("StageComics", "https://stagecomics.com", "pt-BR", SimpleDateFormat("MMMM dd, yyyy", Locale("pt"))) {
override fun chapterFromElement(element: Element): SChapter {
val parsedChapter = super.chapterFromElement(element)
parsedChapter.date_upload = element.select("img").firstOrNull()?.attr("alt")
?.let { parseChapterDate(it) }
?: parseChapterDate(element.select("span.chapter-release-date i").firstOrNull()?.text())
return parsedChapter
}
}
class SpookyScanlations : Madara("Spooky Scanlations", "https://spookyscanlations.xyz", "es", SimpleDateFormat("MMMM dd, yyyy", Locale("es")))
class RandomTranslations : Madara("Random Translations", "https://randomtranslations.com", "en", SimpleDateFormat("dd/MM/yyyy", Locale.US))
class Atikrost : Madara("Atikrost", "https://atikrost.com", "tr", SimpleDateFormat("MMMM dd, yyyy", Locale("tr")))
class ManhuaFast : Madara("ManhuaFast", "https://manhuafast.com", "en") { class ManhuaFast : Madara("ManhuaFast", "https://manhuafast.com", "en") {
override val pageListParseSelector = "li.blocks-gallery-item" override val pageListParseSelector = "li.blocks-gallery-item"
} }
@ -1277,8 +1298,6 @@ class AkuManga : Madara("AkuManga", "https://akumanga.com", "ar")
class AsgardTeam : Madara("Asgard Team", "https://www.asgard1team.com", "ar") class AsgardTeam : Madara("Asgard Team", "https://www.asgard1team.com", "ar")
class Skymanga : Madara("Skymanga", "https://skymanga.co", "en")
@Nsfw @Nsfw
class ToonilyNet : Madara("Toonily.net", "https://toonily.net", "en") class ToonilyNet : Madara("Toonily.net", "https://toonily.net", "en")