mirror of
https://github.com/mirror/jdownloader.git
synced 2024-11-23 20:19:50 +00:00
git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@49402 ebf7c1c2-ba36-0410-9fe8-c592906822b4
Former-commit-id: 924486ad49f1f19f2399de16395205660f738f8c
This commit is contained in:
parent
ebb3061fbf
commit
310b41acd1
@ -149,15 +149,7 @@ public class FuckingfastCo extends PluginForHost {
|
||||
logger.log(ignore);
|
||||
}
|
||||
dl = jd.plugins.BrowserAdapter.openDownload(br, link, dllink, this.isResumeable(link, null), this.getMaxChunks(link, null));
|
||||
if (!this.looksLikeDownloadableContent(dl.getConnection())) {
|
||||
br.followConnection(true);
|
||||
if (dl.getConnection().getResponseCode() == 403) {
|
||||
throw new PluginException(LinkStatus.ERROR_TEMPORARILY_UNAVAILABLE, "Server error 403", 5 * 60 * 1000l);
|
||||
} else if (dl.getConnection().getResponseCode() == 404) {
|
||||
throw new PluginException(LinkStatus.ERROR_TEMPORARILY_UNAVAILABLE, "Server error 404", 5 * 60 * 1000l);
|
||||
}
|
||||
throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);
|
||||
}
|
||||
handleConnectionErrors(br, dl.getConnection());
|
||||
dl.startDownload();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user