git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@49402 ebf7c1c2-ba36-0410-9fe8-c592906822b4

Former-commit-id: 924486ad49f1f19f2399de16395205660f738f8c
This commit is contained in:
jiaz 2024-07-22 16:53:28 +00:00
parent ebb3061fbf
commit 310b41acd1

View File

@ -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();
}