[nhentai] fix open in browser issue (closes issue #709) (#721)

[nhentai] fix open in browser issue (closes issue #709)
This commit is contained in:
Sushmith Bhatta 2019-01-10 17:25:35 +05:30 committed by Carlos
parent a90981edd4
commit 2ac138a79a
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: nhentai' appName = 'Tachiyomi: nhentai'
pkgNameSuffix = 'all.nhentai' pkgNameSuffix = 'all.nhentai'
extClass = '.NHJapanese; .NHEnglish; .NHChinese; .NHSpeechless; .NHCzech; .NHEsperanto; .NHMongolian; .NHSlovak; .NHArabic; .NHUkrainian' extClass = '.NHJapanese; .NHEnglish; .NHChinese; .NHSpeechless; .NHCzech; .NHEsperanto; .NHMongolian; .NHSlovak; .NHArabic; .NHUkrainian'
extVersionCode = 2 extVersionCode = 3
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -65,7 +65,7 @@ open class NHentai(override val lang: String, val nhLang: String) : HttpSource()
mangaDetailsParse(response).apply { initialized = true } mangaDetailsParse(response).apply { initialized = true }
} }
override fun mangaDetailsRequest(manga: SManga) = nhGet(manga.url) override fun mangaDetailsRequest(manga: SManga) = nhGet( baseUrl + manga.url )
fun urlToDetailsRequest(url: String) = nhGet("$baseUrl/api/gallery/${url.substringAfterLast('/')}") fun urlToDetailsRequest(url: String) = nhGet("$baseUrl/api/gallery/${url.substringAfterLast('/')}")