Fix readcomicstv (#58)

* Fix readcomicstv

* Update build.gradle
This commit is contained in:
Jozef Hollý 2017-07-22 17:46:45 +02:00 committed by inorichi
parent 2af088cafd
commit c5daec9310
2 changed files with 8 additions and 8 deletions

View File

@ -2,11 +2,11 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
ext {
appName = 'Tachiyomi: ReadComic.tv'
appName = 'Tachiyomi: ReadComicWebsite'
pkgNameSuffix = "en.readcomictv"
extClass = '.Readcomictv'
extVersionCode = 1
extVersionSuffix = 1
extVersionCode = 2
extVersionSuffix = 2
libVersion = '1.0'
}

View File

@ -15,9 +15,9 @@ import java.text.SimpleDateFormat
class Readcomictv : ParsedHttpSource() {
override val lang = "en"
override val name = "Readcomictv"
override val name = "ReadComicsWebsite"
override val supportsLatest = true
override val baseUrl = "http://readcomics.tv"
override val baseUrl = "http://readcomics.website"
override fun chapterFromElement(element: Element): SChapter {
val chapter = SChapter.create()
@ -52,7 +52,7 @@ class Readcomictv : ParsedHttpSource() {
}
override fun latestUpdatesRequest(page: Int): Request {
return GET("http://readcomics.tv/comic-updates/$page",headers)
return GET(baseUrl + "/comic-updates/$page",headers)
}
override fun latestUpdatesSelector(): String {
@ -89,7 +89,7 @@ class Readcomictv : ParsedHttpSource() {
override fun popularMangaNextPageSelector(): String? = ".general-nav :last-child"
override fun popularMangaRequest(page: Int): Request {
return GET("http://readcomics.tv/popular-comic/$page",headers)
return GET(baseUrl + "/popular-comic/$page",headers)
}
override fun popularMangaSelector(): String = ".manga-box h3 a"
@ -106,7 +106,7 @@ class Readcomictv : ParsedHttpSource() {
}
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
return GET("http://readcomics.tv/advanced-search?key=$query&page=$page",headers)
return GET(baseUrl + "/advanced-search?key=$query&page=$page",headers)
}
override fun searchMangaSelector(): String {