Fix minus bug when albums contained quotation marks

Closes #134
This commit is contained in:
4pr0n 2014-11-27 03:29:16 -08:00
parent 2ae790a49e
commit 984c55a749
2 changed files with 3 additions and 3 deletions

View File

@ -66,8 +66,8 @@ public class MinusRipper extends AlbumRipper {
// http://minus.com/mw7ztQ6xzP7ae // http://minus.com/mw7ztQ6xzP7ae
// http://vampyr3.minus.com/mw7ztQ6xzP7ae // http://vampyr3.minus.com/mw7ztQ6xzP7ae
String u = url.toExternalForm(); String u = url.toExternalForm();
u = u.replace("www.minus.com", "minus.com"); u = u.replace("/www.minus.com", "/minus.com");
u = u.replace("/i.minus.com", "minus.com"); u = u.replace("/i.minus.com", "/minus.com");
Pattern p; Matcher m; Pattern p; Matcher m;
p = Pattern.compile("^https?://minus\\.com/m([a-zA-Z0-9]+).*$"); p = Pattern.compile("^https?://minus\\.com/m([a-zA-Z0-9]+).*$");

View File

@ -118,7 +118,7 @@ public class Http {
public JSONObject getJSON() throws IOException { public JSONObject getJSON() throws IOException {
ignoreContentType(); ignoreContentType();
String jsonString = response().body().replace(""", "\""); String jsonString = response().body();
return new JSONObject(jsonString); return new JSONObject(jsonString);
} }