diff --git a/src/all/snowmtl/build.gradle b/src/all/snowmtl/build.gradle index 4f76663b7..cda296731 100644 --- a/src/all/snowmtl/build.gradle +++ b/src/all/snowmtl/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Snow Machine Translations' - extClass = '.SnowmltFactory' - extVersionCode = 4 + extClass = '.SnowmtlFactory' + extVersionCode = 5 isNsfw = true } diff --git a/src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/SnowmtlDto.kt b/src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/SnowmtlDto.kt index 8ec7f0778..1b7c9b61d 100644 --- a/src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/SnowmtlDto.kt +++ b/src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/SnowmtlDto.kt @@ -35,7 +35,7 @@ data class Dialog( val angle: Float = 0f, val isBold: Boolean = false, val isNewApi: Boolean = false, - val type: String = "sub", + val type: String = "normal", private val fbColor: List = emptyList(), private val bgColor: List = emptyList(), ) { diff --git a/src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/SnowmltFactory.kt b/src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/SnowmtlFactory.kt similarity index 93% rename from src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/SnowmltFactory.kt rename to src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/SnowmtlFactory.kt index 8310b61d1..3856b8a90 100644 --- a/src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/SnowmltFactory.kt +++ b/src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/SnowmtlFactory.kt @@ -6,7 +6,7 @@ import eu.kanade.tachiyomi.source.Source import eu.kanade.tachiyomi.source.SourceFactory @RequiresApi(Build.VERSION_CODES.O) -class SnowmltFactory : SourceFactory { +class SnowmtlFactory : SourceFactory { override fun createSources(): List = languageList.map(::Snowmtl) } diff --git a/src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/SnowmltFilters.kt b/src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/SnowmtlFilters.kt similarity index 100% rename from src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/SnowmltFilters.kt rename to src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/SnowmtlFilters.kt diff --git a/src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/interceptors/ComposedImageInterceptor.kt b/src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/interceptors/ComposedImageInterceptor.kt index c7e6dcd89..db6fd06bd 100644 --- a/src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/interceptors/ComposedImageInterceptor.kt +++ b/src/all/snowmtl/src/eu/kanade/tachiyomi/extension/all/snowmtl/interceptors/ComposedImageInterceptor.kt @@ -125,12 +125,13 @@ class ComposedImageInterceptor( } private fun loadAllFont(chain: Interceptor.Chain) { + val fallback = loadFont("coming_soon_regular.ttf") fontFamily.keys.forEach { key -> val font = fontFamily[key] ?: return@forEach if (font.second != null) { return@forEach } - fontFamily[key] = key to (loadRemoteFont(font.first, chain) ?: loadFont("coming_soon_regular.ttf")) + fontFamily[key] = key to (loadRemoteFont(font.first, chain) ?: fallback) } }