mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 02:12:42 +01:00
Add Manga168 (#3892)
* Add Manga168 * Simplify color genre Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com> --------- Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
This commit is contained in:
parent
6ac18c1466
commit
1ec2e85332
10
src/th/manga168/build.gradle
Normal file
10
src/th/manga168/build.gradle
Normal file
@ -0,0 +1,10 @@
|
||||
ext {
|
||||
extName = 'Manga168'
|
||||
extClass = '.Manga168'
|
||||
themePkg = 'mangathemesia'
|
||||
baseUrl = 'https://manga168.com'
|
||||
overrideVersionCode = 0
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
BIN
src/th/manga168/res/mipmap-hdpi/ic_launcher.png
Normal file
BIN
src/th/manga168/res/mipmap-hdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.4 KiB |
BIN
src/th/manga168/res/mipmap-mdpi/ic_launcher.png
Normal file
BIN
src/th/manga168/res/mipmap-mdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
BIN
src/th/manga168/res/mipmap-xhdpi/ic_launcher.png
Normal file
BIN
src/th/manga168/res/mipmap-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
src/th/manga168/res/mipmap-xxhdpi/ic_launcher.png
Normal file
BIN
src/th/manga168/res/mipmap-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
BIN
src/th/manga168/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
src/th/manga168/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 52 KiB |
@ -0,0 +1,26 @@
|
||||
package eu.kanade.tachiyomi.extension.th.manga168
|
||||
|
||||
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 Manga168 : MangaThemesia(
|
||||
"Manga168",
|
||||
"https://manga168.com",
|
||||
"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…
Reference in New Issue
Block a user