Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/main/java/jcomicdownloader/ComicDownGUI.java
  • Loading branch information
Kennyl committed May 3, 2017
2 parents 9041840 + 999354a commit 7cc7b4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/main/java/jcomicdownloader/ComicDownGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -605,15 +605,21 @@ private static String getCompileDateString(){
return date;
}



private void initCookie()
{
java.net.CookieManager cm = new java.net.CookieManager();
java.net.CookieHandler.setDefault(cm);
}

public ComicDownGUI() {
super(versionString);

Common.setHttpProxy(); // 設置代理伺服器

minimizeEvent();
inittrayIcon();

initCookie();

mainFrame = (this); // for change look and feel

Expand Down
6 changes: 4 additions & 2 deletions src/main/java/jcomicdownloader/module/ParseXXBH.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void parseComicURL()
endIndex = allPageString.indexOf( "\"", beginIndex );
String jsURL2 = allPageString.substring( beginIndex, endIndex );
*/

/*
// 取得v3_cont_v130404.js
beginIndex = allPageString.indexOf( "/cont_" );
beginIndex = allPageString.lastIndexOf( "http:", beginIndex );
Expand All @@ -134,6 +134,8 @@ public void parseComicURL()
beginIndex = allJSPageString.lastIndexOf( "http:", beginIndex );
endIndex = allJSPageString.indexOf( "\"", beginIndex );
String jsURL2 = allJSPageString.substring( beginIndex, endIndex );
*/
String jsURL2 = "http://css.177mh.com/img_v1/fdc_160903a.js";

Common.debugPrintln( "第2個js位址: " + jsURL2 );

Expand Down Expand Up @@ -204,7 +206,7 @@ public void parseComicURL()
for ( int p = 0; p < totalPage && Run.isAlive; p++ )
{

comicURL[p] = frontPicURLs[serverId - 1] + backPicURLs[p];
comicURL[p] = frontPicURLs[serverId - 1] + backPicURLs[p].replace("\\", "");

//使用最簡下載協定,加入refer始可下載
referURL = webSite + "?page=" + (p + 1);
Expand Down

0 comments on commit 7cc7b4b

Please sign in to comment.