diff options
Diffstat (limited to 'module/plugins/internal/XFSHoster.py')
-rw-r--r-- | module/plugins/internal/XFSHoster.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/internal/XFSHoster.py b/module/plugins/internal/XFSHoster.py index 293b01c4b..f63ee8755 100644 --- a/module/plugins/internal/XFSHoster.py +++ b/module/plugins/internal/XFSHoster.py @@ -5,15 +5,14 @@ import re from module.plugins.captcha.ReCaptcha import ReCaptcha from module.plugins.captcha.SolveMedia import SolveMedia -from module.plugins.internal.Plugin import set_cookie from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo -from module.plugins.internal.utils import html_unescape, seconds_to_midnight +from module.plugins.internal.utils import html_unescape, seconds_to_midnight, set_cookie class XFSHoster(SimpleHoster): __name__ = "XFSHoster" __type__ = "hoster" - __version__ = "0.68" + __version__ = "0.69" __status__ = "stable" __pattern__ = r'^unmatchable$' @@ -31,6 +30,7 @@ class XFSHoster(SimpleHoster): PLUGIN_DOMAIN = None + DIRECT_LINK = None LEECH_HOSTER = True #@NOTE: hould be set to `False` by default for safe, but I am lazy... NAME_PATTERN = r'(Filename[ ]*:[ ]*</b>(</td><td nowrap>)?|name="fname"[ ]+value="|<[\w^_]+ class="(file)?name">)\s*(?P<N>.+?)(\s*<|")' @@ -98,7 +98,7 @@ class XFSHoster(SimpleHoster): if m is not None: break - data = self.get_post_parameters() + data = self._post_parameters() self.html = self.load(pyfile.url, post=data, redirect=False) @@ -175,7 +175,7 @@ class XFSHoster(SimpleHoster): self.link = header.get('location') - def get_post_parameters(self): + def _post_parameters(self): if self.FORM_PATTERN or self.FORM_INPUTS_MAP: action, inputs = self.parse_html_form(self.FORM_PATTERN or "", self.FORM_INPUTS_MAP or {}) else: |