Skip to content

Commit

Permalink
fix 6comic, 8comic, comicbus and Fumanhua
Browse files Browse the repository at this point in the history
  • Loading branch information
abc9070410 committed Aug 20, 2016
1 parent 2b13b09 commit a3cdcb8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/main/java/jcomicdownloader/module/ParseEC.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,19 +226,19 @@ public String getSinglePageURL( String idString, String volumeNoString, String c
case 16:
case 18:
case 20:
ret += "http://www.comicbus.com/online/finance-";
ret += "http://www.comicbus.com/online/comic-";
break;
case 4:
case 6:
case 12:
case 22:
ret += "http://www.comicbus.com/online/Domain-";
ret += "http://www.comicbus.com/online/comic-";
break;
case 1:
case 17:
case 19:
case 21:
ret += "http://www.comicbus.com/online/finance-";
ret += "http://www.comicbus.com/online/comic-";
break;
case 2:
case 5:
Expand All @@ -249,7 +249,7 @@ public String getSinglePageURL( String idString, String volumeNoString, String c
case 11:
case 13:
case 14:
ret += "http://www.comicbus.com/online/insurance-";
ret += "http://www.comicbus.com/online/comic-";
break;
default:
throw new IllegalArgumentException("The catid is not whithin the valid range.");
Expand Down Expand Up @@ -410,6 +410,6 @@ private int mm(int p) {
}

private void si(String c) {
this.urlResult = "http://img" + ss(c, 4, 2) + ".8comic.com/" + ss(c, 6, 1) + "/" + ti + "/" + ss(c, 0, 4) + "/" + nn(p) + "_" + ss(c, mm(p) + 10, 3, f) + ".jpg";
this.urlResult = "http://img" + ss(c, 4, 2) + ".6comic.com:99/" + ss(c, 6, 1) + "/" + ti + "/" + ss(c, 0, 4) + "/" + nn(p) + "_" + ss(c, mm(p) + 10, 3, f) + ".jpg";
}
}
5 changes: 4 additions & 1 deletion src/main/java/jcomicdownloader/module/ParseFumanhua.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void parseComicURL() { // parse URL and save all URLs in comicURL //
break;
}
}

Common.debugPrintln( "第一張圖片位址:" + firstPicURL );

// 取得圖片副檔名
Expand All @@ -161,6 +161,8 @@ public void parseComicURL() { // parse URL and save all URLs in comicURL //
String picName = firstPicURL.substring( beginIndex, endIndex );
Common.debugPrintln( "圖片檔名:" + picName );

int firstPageNo = Integer.parseInt(picName);

String zeroString = "";
for ( int i = 0; i < picName.length(); i ++ ) {
if (picName.substring(i, i+1).matches("\\d+"))
Expand All @@ -174,6 +176,7 @@ public void parseComicURL() { // parse URL and save all URLs in comicURL //

int p = 0; // 目前頁數
String picURL = firstPicURL; // 每張圖片位址
for ( int i = firstPageNo ; i < totalPage + firstPageNo; i++ ) {
String nowFileName = formatter.format( i ) + "." + extension;
String nextFileName = formatter.format( i + 1 ) + "." + extension;

Expand Down

0 comments on commit a3cdcb8

Please sign in to comment.