MMRCMS - add Op-VF and FR Scan ()

This commit is contained in:
Mike 2020-08-19 03:24:56 -04:00 committed by GitHub
parent e1cabf0d2a
commit 9dc5d2ca83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 8 deletions
src/all/mmrcms

@ -5,7 +5,7 @@ ext {
extName = 'My Manga Reader CMS (Many sources)'
pkgNameSuffix = 'all.mmrcms'
extClass = '.MyMangaReaderCMSSources'
extVersionCode = 49
extVersionCode = 50
libVersion = '1.2'
containsNsfw = true
}

File diff suppressed because one or more lines are too long

@ -269,6 +269,8 @@ class Generator {
SourceData("tr", "MangaVadisi", "http://manga-v2.mangavadisi.org"),
SourceData("id", "MangaID", "https://mangaid.click"),
SourceData("fr", "Jpmangas", "https://www.jpmangas.com"),
SourceData("fr", "Op-VF", "https://www.op-vf.com"),
SourceData("fr", "FR Scan", "https://www.frscan.me"),
// NOTE: THIS SOURCE CONTAINS A CUSTOM LANGUAGE SYSTEM (which will be ignored)!
SourceData("other", "HentaiShark", "https://www.hentaishark.com", true))
// Changed CMS

@ -308,7 +308,7 @@ open class MyMangaReaderCMSSource(
val chapter = SChapter.create()
try {
val titleWrapper = element.select("[class^=chapter-title-rtl]").first()
val titleWrapper = if (name == "Mangas.pw") element.select("em a[alt]").first() else element.select("[class^=chapter-title-rtl]").first()
// Some websites add characters after "..-rtl" thus the need of checking classes that starts with that
val url = titleWrapper.getElementsByTag("a")
.first { it.attr("href").contains(urlRegex) }