mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-26 04:03:01 +01:00
Add Rocks Manga (#2739)
This commit is contained in:
parent
b403a65a62
commit
64a09daaa3
10
src/ar/rocksmanga/build.gradle
Normal file
10
src/ar/rocksmanga/build.gradle
Normal 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"
|
BIN
src/ar/rocksmanga/res/mipmap-hdpi/ic_launcher.png
Normal file
BIN
src/ar/rocksmanga/res/mipmap-hdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.0 KiB |
BIN
src/ar/rocksmanga/res/mipmap-mdpi/ic_launcher.png
Normal file
BIN
src/ar/rocksmanga/res/mipmap-mdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.5 KiB |
BIN
src/ar/rocksmanga/res/mipmap-xhdpi/ic_launcher.png
Normal file
BIN
src/ar/rocksmanga/res/mipmap-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
src/ar/rocksmanga/res/mipmap-xxhdpi/ic_launcher.png
Normal file
BIN
src/ar/rocksmanga/res/mipmap-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
src/ar/rocksmanga/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
src/ar/rocksmanga/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user