diff options
author | Samir Boulema <sboulema@gmail.com> | 2014-06-25 16:28:24 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-06-25 16:28:24 +0200 |
commit | a6684ce241093935d3812b16da0094aab915d85d (patch) | |
tree | 363ecc08b41bdbad87bc703da7c211a16c0b814f /module | |
parent | [SimplyPremium] Updated API (diff) | |
download | pyload-a6684ce241093935d3812b16da0094aab915d85d.tar.xz |
[Filefactory] Improved free links detect
Merges #638
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/FilefactoryCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/FilefactoryCom.py b/module/plugins/hoster/FilefactoryCom.py index 273a717b5..21b803649 100644 --- a/module/plugins/hoster/FilefactoryCom.py +++ b/module/plugins/hoster/FilefactoryCom.py @@ -23,7 +23,7 @@ class FilefactoryCom(SimpleHoster): __name__ = "FilefactoryCom" __type__ = "hoster" __pattern__ = r'https?://(?:www\.)?filefactory\.com/file/(?P<id>[a-zA-Z0-9]+)' - __version__ = "0.47" + __version__ = "0.48" __description__ = """Filefactory.com hoster plugin""" __author_name__ = "stickell" __author_mail__ = "l.stickell@yahoo.it" @@ -40,7 +40,7 @@ class FilefactoryCom(SimpleHoster): elif "All free download slots on this server are currently in use" in self.html: self.retry(50, 15 * 60, "All free slots are busy") - m = re.search(r'data-href-direct="(http://[^"]+)"', self.html) + m = re.search(r'data-href(?:-direct)?="(http://[^"]+)"', self.html) if m: t = re.search(r'<div id="countdown_clock" data-delay="(\d+)">', self.html) if t: @@ -65,7 +65,7 @@ class FilefactoryCom(SimpleHoster): self.wait(int(waittime.group(1))) # Parse the direct link and download it - direct = re.search(r'data-href-direct="(.*)" class="button', self.html) + direct = re.search(r'data-href(?:-direct)?="(.*)" class="button', self.html) if not direct: self.parseError('Unable to detect free direct link') direct = direct.group(1) |