Skip to content

Commit

Permalink
Update for 8Comics
Browse files Browse the repository at this point in the history
  • Loading branch information
jordenyt committed Mar 30, 2023
1 parent 69075dd commit 12c1429
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.jsoft.jcomic"
minSdkVersion 21
targetSdkVersion 31
versionCode 20190515
versionName "3.5"
versionCode 20230330
versionName "4.8"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ComicVIPBookParser(book: BookDTO, listener: BookParserListener) : BookPars

}

p = Pattern.compile(".*<p class=\"title\">(.+?)</p>.*")
p = Pattern.compile(".*<h6 class=\"title\">(.+?)</h6>.*")
m = p.matcher(s)
if (m.matches()) {
val bookTitle = m.group(1).replace("&nbsp;", " ").replace("<.*?>".toRegex(), "")
Expand All @@ -53,7 +53,7 @@ class ComicVIPBookParser(book: BookDTO, listener: BookParserListener) : BookPars
book.bookSynopsis = bookSynopsis
}

p = Pattern.compile(".*<div class=\"cover\">.*<img src='(.+)'>.*")
p = Pattern.compile(".*<li class=\"cover\">.*<img src='(.+)'>.*")
m = p.matcher(s)
if (m.matches()) {
book.bookImgUrl = "https://m.comicbus.com" + m.group(1)
Expand Down

0 comments on commit 12c1429

Please sign in to comment.