Skip to content

Commit

Permalink
修改字幕库下载失败问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Andyfoo committed Jan 1, 2020
1 parent 849f7b1 commit 225ba3a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Binary file modified __upgrade_files/SubTitleSearcher.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions _upgrade/last
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version" : "2.0.6",
"version" : "2.0.7",
"type" : "exe",
"sign" : "E29DE3FE0C52B62EA70B13859B48CD33",
"sign" : "607ABA7C06977F72B35339FBD9A2FF27",
"desc" : "修改字幕库下载失败问题",
"url" : "https://github.com/Andyfoo/SubTitleSearcher/raw/master/__upgrade_files/SubTitleSearcher.exe",
}
2 changes: 1 addition & 1 deletion src/main/java/zimu/AppConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class AppConfig {
public static String appName = "SubTitleSearcher";
public static String appTitle = "字幕下载";
//public static String appTitle = "SubTitleSearcher";
public static String appVer = "2.0.6";
public static String appVer = "2.0.7";

public static String appPath;
public static boolean isExe;
Expand Down
7 changes: 5 additions & 2 deletions src/main/java/zimu/common/sites/ZIMuKuCommon.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ public static JSONArray DownList(String fileName) throws Exception {
public static JSONObject downContent(String url) {
String result = httpGet(baseUrl+url);
String downUrl = RegexUtil.getMatchStr(result,
"<a\\s+id=\"down1\"\\s+href=\"(/dld/[\\w]+\\.html)\""
"<a\\s+id=\"down1\"\\s+href=\"([^\"]*/dld/[\\w]+\\.html)\""
, Pattern.DOTALL);
if(downUrl == null)return null;
downUrl = baseUrl + downUrl;
if(!downUrl.startsWith("http")) {
downUrl = baseUrl + downUrl;
}

result = httpGet(downUrl);
if(result == null)return null;
//System.out.println(result);
Expand Down

0 comments on commit 225ba3a

Please sign in to comment.