Fix readmanga like sites with new composition of url (#2301)

Fix readmanga like sites with new composition of url
This commit is contained in:
Pavka 2020-02-27 17:12:39 +03:00 committed by GitHub
parent 33749811cb
commit beffdffd77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 6 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Mintmanga'
pkgNameSuffix = 'ru.mintmanga'
extClass = '.Mintmanga'
extVersionCode = 17
extVersionCode = 18
libVersion = '1.2'
}

View File

@ -206,7 +206,11 @@ class Mintmanga : ParsedHttpSource() {
val url = if (urlParts[1].isEmpty() && urlParts[2].startsWith("/static/")) {
baseUrl + urlParts[2]
} else {
urlParts[1] + urlParts[0] + urlParts[2]
if (urlParts[1].endsWith("/manga/")) {
urlParts[0] + urlParts[2]
} else {
urlParts[1] + urlParts[0] + urlParts[2]
}
}
pages.add(Page(i++, "", url))
}

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Readmanga'
pkgNameSuffix = 'ru.readmanga'
extClass = '.Readmanga'
extVersionCode = 16
extVersionCode = 17
libVersion = '1.2'
}

View File

@ -206,7 +206,11 @@ class Readmanga : ParsedHttpSource() {
val url = if (urlParts[1].isEmpty() && urlParts[2].startsWith("/static/")) {
baseUrl + urlParts[2]
} else {
urlParts[1] + urlParts[0] + urlParts[2]
if (urlParts[1].endsWith("/manga/")) {
urlParts[0] + urlParts[2]
} else {
urlParts[1] + urlParts[0] + urlParts[2]
}
}
pages.add(Page(i++, "", url))
}

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Selfmanga'
pkgNameSuffix = 'ru.selfmanga'
extClass = '.Selfmanga'
extVersionCode = 5
extVersionCode = 6
libVersion = '1.2'
}

View File

@ -157,7 +157,11 @@ class Selfmanga : ParsedHttpSource() {
val url = if (urlParts[1].isEmpty() && urlParts[2].startsWith("/static/")) {
baseUrl + urlParts[2]
} else {
urlParts[1] + urlParts[0] + urlParts[2]
if (urlParts[1].endsWith("/manga/")) {
urlParts[0] + urlParts[2]
} else {
urlParts[1] + urlParts[0] + urlParts[2]
}
}
pages.add(Page(i++, "", url))
}