Add Dark Nebulus Manga (#8725)
* Add Dark Nebulus Manga * Dark Nebulus: update icon. Fix cover, author, artist, description
@ -3,7 +3,7 @@ ext {
|
||||
extClass = '.DarkNebulus'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://www.darknebulus.com'
|
||||
overrideVersionCode = 0
|
||||
overrideVersionCode = 1
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 48 KiB |
@ -3,6 +3,7 @@ package eu.kanade.tachiyomi.extension.es.darknebulus
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||
import okhttp3.OkHttpClient
|
||||
import org.jsoup.nodes.Element
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
@ -10,13 +11,24 @@ class DarkNebulus : Madara(
|
||||
"Dark Nebulus",
|
||||
"https://www.darknebulus.com",
|
||||
"es",
|
||||
dateFormat = SimpleDateFormat("MMM dd, yyyy", Locale("es")),
|
||||
dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.ROOT),
|
||||
) {
|
||||
override val client: OkHttpClient = super.client.newBuilder()
|
||||
.rateLimit(3)
|
||||
.build()
|
||||
|
||||
override val useLoadMoreRequest = LoadMoreStrategy.Never
|
||||
override val useNewChapterEndpoint = true
|
||||
|
||||
override val useLoadMoreRequest = LoadMoreStrategy.Never
|
||||
override val mangaDetailsSelectorAuthor = "strong:contains(Autor) + span a"
|
||||
override val mangaDetailsSelectorArtist = "strong:contains(Artista) + span a"
|
||||
override val mangaDetailsSelectorDescription = ".manga-summary"
|
||||
override val mangaDetailsSelectorThumbnail = "head meta[property=og:image]"
|
||||
|
||||
override fun imageFromElement(element: Element): String? {
|
||||
return when {
|
||||
element.hasAttr("content") -> element.attr("abs:content")
|
||||
else -> super.imageFromElement(element)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
10
src/es/darknebulusmanga/build.gradle
Normal file
@ -0,0 +1,10 @@
|
||||
ext {
|
||||
extName = 'Dark Nebulus Manga'
|
||||
extClass = '.DarkNebulusManga'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://darknebulusmanga.com'
|
||||
overrideVersionCode = 0
|
||||
isNsfw = false
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
BIN
src/es/darknebulusmanga/res/mipmap-hdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
src/es/darknebulusmanga/res/mipmap-mdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
src/es/darknebulusmanga/res/mipmap-xhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
src/es/darknebulusmanga/res/mipmap-xxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
src/es/darknebulusmanga/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 48 KiB |
@ -0,0 +1,28 @@
|
||||
package eu.kanade.tachiyomi.extension.es.darknebulusmanga
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import org.jsoup.nodes.Element
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class DarkNebulusManga : Madara(
|
||||
"Dark Nebulus Manga",
|
||||
"https://darknebulusmanga.com",
|
||||
"es",
|
||||
dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.ROOT),
|
||||
) {
|
||||
override val useLoadMoreRequest = LoadMoreStrategy.Never
|
||||
override val useNewChapterEndpoint = true
|
||||
|
||||
override val mangaDetailsSelectorAuthor = "strong:contains(Autor) + span a"
|
||||
override val mangaDetailsSelectorArtist = "strong:contains(Artista) + span a"
|
||||
override val mangaDetailsSelectorDescription = ".manga-summary"
|
||||
override val mangaDetailsSelectorThumbnail = "head meta[property=og:image]"
|
||||
|
||||
override fun imageFromElement(element: Element): String? {
|
||||
return when {
|
||||
element.hasAttr("content") -> element.attr("abs:content")
|
||||
else -> super.imageFromElement(element)
|
||||
}
|
||||
}
|
||||
}
|