Add Rocks Manga (#2739)

This commit is contained in:
Vetle Ledaal 2024-05-02 01:11:01 +00:00 committed by GitHub
parent b403a65a62
commit 64a09daaa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,10 @@
ext {
extName = 'Rocks Manga'
extClass = '.RocksManga'
themePkg = 'madara'
baseUrl = 'https://rocks-manga.com'
overrideVersionCode = 0
isNsfw = false
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,40 @@
package eu.kanade.tachiyomi.extension.ar.rocksmanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.SChapter
import org.jsoup.nodes.Element
import java.text.SimpleDateFormat
import java.util.Locale
class RocksManga : Madara(
"Rocks Manga",
"https://rocks-manga.com",
"ar",
dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale("ar")),
) {
override fun popularMangaSelector() = ".shido-manga"
override val popularMangaUrlSelector = "a.s-manga-title"
override val mangaDetailsSelectorTitle = ".title"
override val mangaDetailsSelectorAuthor = ".heading:contains(المؤلف:) + .content a"
override val mangaDetailsSelectorArtist = ".heading:contains(الرسام:) + .content a"
override val mangaDetailsSelectorStatus = ".status"
override val mangaDetailsSelectorDescription = ".story"
override val mangaDetailsSelectorThumbnail = ".profile-manga .poster img"
override val mangaDetailsSelectorGenre = ".heading:contains(التصنيف:) + .content a"
override val altNameSelector = ".other-name"
override fun chapterListSelector() = "#chapter-list li.chapter-item"
override fun chapterDateSelector() = ".ch-post-time"
override val pageListParseSelector = ".reading-content img"
override val useLoadMoreRequest = LoadMoreStrategy.Never
override val useNewChapterEndpoint = false
override val filterNonMangaItems = false
override fun chapterFromElement(element: Element): SChapter {
val chapter = super.chapterFromElement(element)
chapter.name = element.selectFirst(".detail-ch")!!.text()
return chapter
}
}