parent
a19f2184b7
commit
d181f87667
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: MangaShow.Me'
|
||||
pkgNameSuffix = 'ko.mangashowme'
|
||||
extClass = '.MangaShowMe'
|
||||
extVersionCode = 2
|
||||
extVersionCode = 3
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ internal class ImageDecoderInterceptor : Interceptor {
|
|||
|
||||
/*
|
||||
* `decodeV1ImageNative` is modified version of
|
||||
* https://github.com/junheah/MangaViewAndroid/blob/master/app/src/main/java/ml/melun/mangaview/Downloader.java#L213-L245
|
||||
* https://github.com/junheah/MangaViewAndroid/blob/b69a4427258fe7fc5fb5363108572bbee0d65e94/app/src/main/java/ml/melun/mangaview/mangaview/Decoder.java#L6-L60
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
@ -122,7 +122,7 @@ internal class ImageDecoderInterceptor : Interceptor {
|
|||
|
||||
/*
|
||||
* `decodeRandom` is modified version of
|
||||
* https://github.com/junheah/MangaViewAndroid/blob/master/app/src/main/java/ml/melun/mangaview/Downloader.java#L213-L245
|
||||
* https://github.com/junheah/MangaViewAndroid/blob/b69a4427258fe7fc5fb5363108572bbee0d65e94/app/src/main/java/ml/melun/mangaview/mangaview/Decoder.java#L6-L60
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -24,7 +24,7 @@ import java.util.concurrent.TimeUnit
|
|||
**/
|
||||
class MangaShowMe : ParsedHttpSource() {
|
||||
override val name = "MangaShow.Me"
|
||||
override val baseUrl = "https://mangashow.me"
|
||||
override val baseUrl = "https://mangashow2.me"
|
||||
override val lang: String = "ko"
|
||||
|
||||
// Latest updates currently returns duplicate manga as it separates manga into chapters
|
||||
|
@ -33,6 +33,21 @@ class MangaShowMe : ParsedHttpSource() {
|
|||
.connectTimeout(10, TimeUnit.SECONDS)
|
||||
.readTimeout(30, TimeUnit.SECONDS)
|
||||
.addInterceptor(ImageDecoderInterceptor())
|
||||
.addInterceptor { chain ->
|
||||
val req = chain.request()
|
||||
var res: Response? = null
|
||||
|
||||
for (_i in 0..10) {
|
||||
try {
|
||||
res = chain.proceed(req)
|
||||
} catch (e: javax.net.ssl.SSLHandshakeException) {
|
||||
if (e.message.toString().contains("Connection reset by peer")) continue
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
res ?: chain.proceed(req)
|
||||
}
|
||||
.addInterceptor { chain ->
|
||||
val response = chain.proceed(chain.request())
|
||||
if (response.code() == 503) {
|
||||
|
|
Loading…
Reference in New Issue