From 0b1babe3247b4a4f90b56dbf2f930ff006bff6d7 Mon Sep 17 00:00:00 2001 From: Stefano Date: Sun, 29 Dec 2013 17:30:13 +0100 Subject: Filefactory: fixed #446 (cherry picked from commit d0c4c94ff6486f057c80b0035b5f2469d884dc51) --- pyload/plugins/hoster/FilefactoryCom.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pyload/plugins/hoster/FilefactoryCom.py b/pyload/plugins/hoster/FilefactoryCom.py index 79273d4cf..8d9814007 100644 --- a/pyload/plugins/hoster/FilefactoryCom.py +++ b/pyload/plugins/hoster/FilefactoryCom.py @@ -24,12 +24,12 @@ class FilefactoryCom(SimpleHoster): __name__ = "FilefactoryCom" __type__ = "hoster" __pattern__ = r"https?://(?:www\.)?filefactory\.com/file/(?P[a-zA-Z0-9]+)" - __version__ = "0.43" + __version__ = "0.44" __description__ = """Filefactory.Com File Download Hoster""" __author_name__ = ("stickell") __author_mail__ = ("l.stickell@yahoo.it") - FILE_INFO_PATTERN = r'
]*>\s*

(?P[^<]+)

\s*
(?P[\d.]+) (?P\w+) uploaded' + FILE_INFO_PATTERN = r'
]*>\s*

(?P[^<]+)

\s*
\s*(?P[\d.]+) (?P\w+) uploaded' DIRECT_LINK_PATTERN = r'' def handleFree(self): @@ -41,8 +41,13 @@ class FilefactoryCom(SimpleHoster): m = re.search(r'data-href-direct="(http://[^"]+)"', self.html) if m: - self.setWait(30) - self.wait() + t = re.search(r'
', self.html) + if t: + t = t.group(1) + else: + self.logDebug("Unable to detect countdown duration. Guessing 60 seconds") + t = 60 + self.wait(t) direct = m.group(1) else: # This section could be completely useless now # Load the page that contains the direct link -- cgit v1.2.3