Add Moodtoon (#8181)
This commit is contained in:
parent
3fb70c10de
commit
e0193a707a
10
src/th/moodtoon/build.gradle
Normal file
10
src/th/moodtoon/build.gradle
Normal file
@ -0,0 +1,10 @@
|
||||
ext {
|
||||
extName = 'Moodtoon'
|
||||
extClass = '.Moodtoon'
|
||||
themePkg = 'mangathemesia'
|
||||
baseUrl = 'https://moodtoon.net'
|
||||
overrideVersionCode = 0
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
BIN
src/th/moodtoon/res/mipmap-hdpi/ic_launcher.png
Normal file
BIN
src/th/moodtoon/res/mipmap-hdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
BIN
src/th/moodtoon/res/mipmap-mdpi/ic_launcher.png
Normal file
BIN
src/th/moodtoon/res/mipmap-mdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
src/th/moodtoon/res/mipmap-xhdpi/ic_launcher.png
Normal file
BIN
src/th/moodtoon/res/mipmap-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.7 KiB |
BIN
src/th/moodtoon/res/mipmap-xxhdpi/ic_launcher.png
Normal file
BIN
src/th/moodtoon/res/mipmap-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
src/th/moodtoon/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
src/th/moodtoon/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
@ -0,0 +1,26 @@
|
||||
package eu.kanade.tachiyomi.extension.th.moodtoon
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import org.jsoup.nodes.Document
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
import java.util.TimeZone
|
||||
|
||||
class Moodtoon : MangaThemesia(
|
||||
"Moodtoon",
|
||||
"https://moodtoon.net",
|
||||
"th",
|
||||
dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale("th")).apply {
|
||||
timeZone = TimeZone.getTimeZone("Asia/Bangkok")
|
||||
},
|
||||
) {
|
||||
override fun mangaDetailsParse(document: Document): SManga {
|
||||
return super.mangaDetailsParse(document).apply {
|
||||
// Add 'color' badge as a genre
|
||||
if (document.selectFirst(".thumb .colored") != null) {
|
||||
genre = genre?.plus(", Color")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user