...
This commit is contained in:
tonikelope
2016-11-25 15:41:28 +01:00
parent d844a7a32c
commit 3c96b4bc4b
2 changed files with 1 additions and 6 deletions

View File

@ -363,8 +363,7 @@ public final class MegaAPI {
}
public String getMegaFileDownloadUrl(String link) throws IOException, MegaAPIException {
link = link.replace("/#!N?", "/#N!");
String file_id = findFirstRegex("#.*?!([^!]+)", link, 1);
String request;
@ -395,8 +394,6 @@ public final class MegaAPI {
public String[] getMegaFileMetadata(String link) throws MegaAPIException, MalformedURLException, IOException {
link = link.replace("/#!N?", "/#N!");
String file_id = findFirstRegex("#.*?!([^!]+)", link, 1);
String file_key = findFirstRegex("#.*?![^!]+!([^!#]+)", link, 1);

View File

@ -165,8 +165,6 @@ public final class StreamerDialog extends javax.swing.JDialog implements Clipboa
String data;
link = link.replace("/#!N?", "/#N!");
if (findFirstRegex("://mega(\\.co)?\\.nz/#[^fF]", link, 0) != null) {
data = findFirstRegex("/#(N?!.+)", link, 1);