Delay filter list requests (#12000)

This commit is contained in:
kasperskier 2022-05-28 18:05:06 +08:00 committed by GitHub
parent 50f1eb1770
commit bf5ec6386e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 10 deletions

View File

@ -148,10 +148,6 @@ abstract class SinMH(
} }
} }
init {
tryFetchCategories()
}
override fun getFilterList() = override fun getFilterList() =
if (::categories.isInitialized) FilterList( if (::categories.isInitialized) FilterList(
Filter.Header("如果使用文本搜索,将会忽略分类筛选"), Filter.Header("如果使用文本搜索,将会忽略分类筛选"),

View File

@ -6,7 +6,7 @@ import generator.ThemeSourceGenerator
class SinMHGenerator : ThemeSourceGenerator { class SinMHGenerator : ThemeSourceGenerator {
override val themeClass = "SinMH" override val themeClass = "SinMH"
override val themePkg = "sinmh" override val themePkg = "sinmh"
override val baseVersionCode = 2 override val baseVersionCode = 3
override val sources = listOf( override val sources = listOf(
SingleLang( SingleLang(
name = "Gufeng Manhua", baseUrl = "https://www.gufengmh9.com", lang = "zh", name = "Gufeng Manhua", baseUrl = "https://www.gufengmh9.com", lang = "zh",

View File

@ -6,7 +6,7 @@ ext {
extName = 'Manga Cross' extName = 'Manga Cross'
pkgNameSuffix = 'ja.mangacross' pkgNameSuffix = 'ja.mangacross'
extClass = '.MangaCross' extClass = '.MangaCross'
extVersionCode = 2 extVersionCode = 3
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -98,10 +98,6 @@ class MangaCross : HttpSource() {
} }
} }
init {
fetchTags()
}
override fun getFilterList() = override fun getFilterList() =
if (::tags.isInitialized) FilterList( if (::tags.isInitialized) FilterList(
Filter.Header("NOTE: Ignored if using text search!"), Filter.Header("NOTE: Ignored if using text search!"),