Lixin: fixed

VipFileCom: fixed
DistributeData: fixed

git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@5931 ebf7c1c2-ba36-0410-9fe8-c592906822b4
This commit is contained in:
jiaz 2009-05-29 13:27:15 +00:00
parent c5ca6a2f44
commit f74ed02480
3 changed files with 8 additions and 7 deletions

View File

@ -365,7 +365,10 @@ public class DistributeData extends Thread {
}
public void run() {
decryptedLinks.addAll(plg.decryptLinks(decryptableLinks));
ArrayList<DownloadLink> tmp = plg.decryptLinks(decryptableLinks);
synchronized (decryptedLinks) {
decryptedLinks.addAll(tmp);
}
}
public void go() throws Exception {

View File

@ -83,6 +83,7 @@ public class Lixin extends PluginForDecrypt {
/* KEIN EinzelLink gefunden, evtl ist es ein Folder */
Form[] forms = br.getForms();
for (Form element : forms) {
if (element.containsHTML("Download")) continue;
br.submitForm(element);
/* EinzelLink gefunden */
link = br.getRegex("<iframe.*?src=\"(.+?)\"").getMatch(0);

View File

@ -21,6 +21,7 @@ import java.util.regex.Pattern;
import jd.PluginWrapper;
import jd.http.Encoding;
import jd.http.URLConnectionAdapter;
import jd.parser.Regex;
import jd.parser.html.Form;
import jd.plugins.Account;
@ -80,13 +81,9 @@ public class Vipfilecom extends PluginForHost {
br.getPage(link);
link = br.getRedirectLocation();
if (!link.contains("vip-file.com")) throw new PluginException(LinkStatus.ERROR_FATAL, JDLocale.L("plugins.hoster.vipfilecom.errors.nofreedownloadlink", "No free download link for this file"));
br.getPage(link);
link = br.getRedirectLocation();
if (!link.contains("vip-file.com")) throw new PluginException(LinkStatus.ERROR_FATAL, JDLocale.L("plugins.hoster.vipfilecom.errors.nofreedownloadlink", "No free download link for this file"));
link = link.replaceAll("file.com.*?/", "file.com:8080/");
//link = link.replaceAll("file.com.*?/", "file.com:8080/");
br.setFollowRedirects(true);
br.openDownload(downloadLink, link, true, 0).startDownload();
br.openDownload(downloadLink, link, true, 1).startDownload();
}
// @Override