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:
Vetle Ledaal 2024-07-07 16:32:39 +02:00 committed by GitHub
parent 6ac18c1466
commit 1ec2e85332
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 36 additions and 0 deletions

View 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"

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -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")
}
}
}
}