diff --git a/src/all/cubari/build.gradle b/src/all/cubari/build.gradle index 1385eacb6..5b4a0ee78 100644 --- a/src/all/cubari/build.gradle +++ b/src/all/cubari/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Cubari' pkgNameSuffix = "all.cubari" extClass = '.CubariFactory' - extVersionCode = 13 + extVersionCode = 14 } apply from: "$rootDir/common.gradle" diff --git a/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/CubariUrlActivity.kt b/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/CubariUrlActivity.kt index 4d06f04e9..de2a9ca6c 100644 --- a/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/CubariUrlActivity.kt +++ b/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/CubariUrlActivity.kt @@ -15,9 +15,11 @@ class CubariUrlActivity : Activity() { val pathSegments = intent?.data?.pathSegments if (host != null && pathSegments != null) { - val query = when (host) { - "m.imgur.com", "imgur.com" -> fromImgur(pathSegments) - else -> fromCubari(pathSegments) + val query = with(host) { + when { + equals("m.imgur.com") || equals("imgur.com") -> fromImgur(pathSegments) + else -> fromCubari(pathSegments) + } } if (query == null) {