diff --git a/src/all/mango/build.gradle b/src/all/mango/build.gradle index 4d3346927..4b5ce3295 100644 --- a/src/all/mango/build.gradle +++ b/src/all/mango/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Mango' pkgNameSuffix = 'all.mango' extClass = '.Mango' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' } diff --git a/src/all/mango/src/eu/kanade/tachiyomi/extension/all/mango/Mango.kt b/src/all/mango/src/eu/kanade/tachiyomi/extension/all/mango/Mango.kt index db18db4c6..75cf52e32 100644 --- a/src/all/mango/src/eu/kanade/tachiyomi/extension/all/mango/Mango.kt +++ b/src/all/mango/src/eu/kanade/tachiyomi/extension/all/mango/Mango.kt @@ -306,7 +306,7 @@ class Mango : ConfigurableSource, HttpSource() { // We strip the last slash since we will append it above private fun getPrefBaseUrl(): String { var path = preferences.getString(ADDRESS_TITLE, ADDRESS_DEFAULT)!! - if (path.last() == '/') { + if (path.isNotEmpty() && path.last() == '/') { path = path.substring(0, path.length - 1) } return path