webtoons.com (ID), preserve old source id

This commit is contained in:
AwkwardPeak7 2025-06-15 11:22:28 +05:00 committed by Draff
parent cdaf1493cd
commit 5fb99e11eb
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Webtoons.com' extName = 'Webtoons.com'
extClass = '.WebtoonsFactory' extClass = '.WebtoonsFactory'
extVersionCode = 46 extVersionCode = 47
isNsfw = false isNsfw = false
} }

View File

@ -7,7 +7,10 @@ import java.util.Locale
class WebtoonsFactory : SourceFactory { class WebtoonsFactory : SourceFactory {
override fun createSources() = listOf( override fun createSources() = listOf(
Webtoons("en", dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.ENGLISH)), Webtoons("en", dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.ENGLISH)),
Webtoons("id", dateFormat = SimpleDateFormat("d MMMM yyyy", Locale("id"))), object : Webtoons("id", dateFormat = SimpleDateFormat("d MMMM yyyy", Locale("id"))) {
// Override ID as part of the name was removed to be more consiten with other enteries
override val id: Long = 8749627068478740298
},
Webtoons("th", dateFormat = SimpleDateFormat("d MMM yyyy", Locale("th"))), Webtoons("th", dateFormat = SimpleDateFormat("d MMM yyyy", Locale("th"))),
Webtoons("es", dateFormat = SimpleDateFormat("d MMMM. yyyy", Locale("es"))), Webtoons("es", dateFormat = SimpleDateFormat("d MMMM. yyyy", Locale("es"))),
Webtoons("fr", dateFormat = SimpleDateFormat("d MMM yyyy", Locale.FRENCH)), Webtoons("fr", dateFormat = SimpleDateFormat("d MMM yyyy", Locale.FRENCH)),