From 310b41acd1c42b6ad6d33fe149ce6240a5e61787 Mon Sep 17 00:00:00 2001 From: jiaz Date: Mon, 22 Jul 2024 16:53:28 +0000 Subject: [PATCH] git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@49402 ebf7c1c2-ba36-0410-9fe8-c592906822b4 Former-commit-id: 924486ad49f1f19f2399de16395205660f738f8c --- src/jd/plugins/hoster/FuckingfastCo.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/jd/plugins/hoster/FuckingfastCo.java b/src/jd/plugins/hoster/FuckingfastCo.java index 8a1b8dcf1f..269fe25da0 100644 --- a/src/jd/plugins/hoster/FuckingfastCo.java +++ b/src/jd/plugins/hoster/FuckingfastCo.java @@ -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(); }