diff options
Diffstat (limited to 'module/plugins/hoster/OneFichierCom.py')
-rw-r--r-- | module/plugins/hoster/OneFichierCom.py | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/module/plugins/hoster/OneFichierCom.py b/module/plugins/hoster/OneFichierCom.py index 8de529643..259ed7fe1 100644 --- a/module/plugins/hoster/OneFichierCom.py +++ b/module/plugins/hoster/OneFichierCom.py @@ -76,27 +76,11 @@ class OneFichierCom(SimpleHoster): else: info = {'status' : 8, - 'error' : _("Too many redirects")} + 'error' : _("Too many redirects")} return info - def handle_direct(self, pyfile): - redirect = pyfile.url - for i in xrange(self.get_config("maxredirs", plugin="UserAgentSwitcher")): - - headers = self.load(redirect, just_header=True) - if 'location' in headers and headers['location']: - self.log_debug("Redirect #%d to: %s" % (i, redirect)) - redirect = headers['location'] - else: - if 'content-type' in headers and headers['content-type'] == "application/octet-stream": - self.link = pyfile.url - break - else: - self.fail(_("Too many redirects")) - - def handle_free(self, pyfile): self.check_errors() @@ -114,7 +98,7 @@ class OneFichierCom(SimpleHoster): def handle_premium(self, pyfile): - self.download(pyfile.url, post={'dl': "Download", 'did': 0}) + self.download(pyfile.url, post={'did': 0, 'dl_no_ssl': "on"}) getInfo = create_getInfo(OneFichierCom) |