ManaMoa: update default URL (closes #1277)

This commit is contained in:
Eugene 2019-09-07 15:10:41 -04:00
parent b04801d953
commit 6b8a4e9ec6
No known key found for this signature in database
GPG Key ID: E1FD745328866B0A
2 changed files with 8 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: ManaMoa (MangaShow.Me)' appName = 'Tachiyomi: ManaMoa (MangaShow.Me)'
pkgNameSuffix = 'ko.mangashowme' pkgNameSuffix = 'ko.mangashowme'
extClass = '.MSMFactory' extClass = '.MSMFactory'
extVersionCode = 12 extVersionCode = 13
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -36,9 +36,13 @@ import java.util.concurrent.TimeUnit
* `manga_list` returns latest 'added' manga. not a chapter updates. * `manga_list` returns latest 'added' manga. not a chapter updates.
**/ **/
class ManaMoa : ConfigurableSource, ParsedHttpSource() { class ManaMoa : ConfigurableSource, ParsedHttpSource() {
override val name = "ManaMoa" override val name = "ManaMoa"
private val defaultBaseUrl = "https://manamoa3.net"
// This keeps updating: https://twitter.com/manamoa20
private val defaultBaseUrl = "https://manamoa13.net"
override val baseUrl by lazy { getPrefBaseUrl() } override val baseUrl by lazy { getPrefBaseUrl() }
override val lang: String = "ko" override val lang: String = "ko"
// Latest updates currently returns duplicate manga as it separates manga into chapters // Latest updates currently returns duplicate manga as it separates manga into chapters
@ -287,7 +291,7 @@ class ManaMoa : ConfigurableSource, ParsedHttpSource() {
screen.addPreference(baseUrlPref) screen.addPreference(baseUrlPref)
} }
private fun getPrefBaseUrl(): String = preferences.getString(BASE_URL_PREF, defaultBaseUrl) private fun getPrefBaseUrl(): String = preferences.getString(BASE_URL_PREF, defaultBaseUrl)!!
override fun getFilterList() = getFilters() override fun getFilterList() = getFilters()
@ -300,4 +304,4 @@ class ManaMoa : ConfigurableSource, ParsedHttpSource() {
internal const val V1_CX = 5 internal const val V1_CX = 5
internal const val V1_CY = 5 internal const val V1_CY = 5
} }
} }