diff options
Diffstat (limited to 'module/plugins/hoster')
| -rw-r--r-- | module/plugins/hoster/FastixRu.py | 6 | ||||
| -rw-r--r-- | module/plugins/hoster/Keep2shareCC.py | 6 | ||||
| -rw-r--r-- | module/plugins/hoster/NowDownloadEu.py | 22 | ||||
| -rw-r--r-- | module/plugins/hoster/TusfilesNet.py | 8 | 
4 files changed, 23 insertions, 19 deletions
| diff --git a/module/plugins/hoster/FastixRu.py b/module/plugins/hoster/FastixRu.py index c2791c5d2..8805081c9 100644 --- a/module/plugins/hoster/FastixRu.py +++ b/module/plugins/hoster/FastixRu.py @@ -9,11 +9,11 @@ from module.common.json_layer import json_loads  class FastixRu(Hoster):      __name__ = "FastixRu" -    __version__ = "0.03" +    __version__ = "0.04"      __type__ = "hoster" -    __pattern__ = r"http?://.*fastix.ru\..*" +    __pattern__ = r"http://(?:www\.)?fastix\.(ru|it)/file/(?P<ID>[a-zA-Z0-9]{24})"      __description__ = """Fastix hoster plugin""" -    __author_name__ = ("Massimo, Rosamilia") +    __author_name__ = ("Massimo Rosamilia")      __author_mail__ = ("max@spiritix.eu")      def getFilename(self, url): diff --git a/module/plugins/hoster/Keep2shareCC.py b/module/plugins/hoster/Keep2shareCC.py index 2eada84ec..d2a13e35b 100644 --- a/module/plugins/hoster/Keep2shareCC.py +++ b/module/plugins/hoster/Keep2shareCC.py @@ -27,8 +27,8 @@ from module.plugins.internal.CaptchaService import ReCaptcha  class Keep2shareCC(SimpleHoster):      __name__ = "Keep2shareCC"      __type__ = "hoster" -    __pattern__ = r"http://(?:www\.)?(?:keep2share|k2s)\.cc/file/(?P<ID>.+)" -    __version__ = "0.04" +    __pattern__ = r"https?://(?:www\.)?(keep2share|k2s|keep2s)\.cc/file/(?P<ID>[a-zA-Z0-9]{13})" +    __version__ = "0.05"      __description__ = """Keep2share.cc hoster plugin"""      __author_name__ = ("stickell")      __author_mail__ = ("l.stickell@yahoo.it") @@ -51,7 +51,7 @@ class Keep2shareCC(SimpleHoster):          m = re.search(self.WAIT_PATTERN, self.html)          if m:              wait_string = m.group(1) -            wait_time = int(wait_string[0:2]) * 3600 + int(wait_string[3:5]) * 60 + int(wait_string[6:8]) +            wait_time = int(wait_string[0:2]) * 60 * 60 + int(wait_string[3:5]) * 60 + int(wait_string[6:8])              self.setWait(wait_time, True)              self.wait()              self.process(self.pyfile) diff --git a/module/plugins/hoster/NowDownloadEu.py b/module/plugins/hoster/NowDownloadEu.py index f1cace73b..b5e6b6493 100644 --- a/module/plugins/hoster/NowDownloadEu.py +++ b/module/plugins/hoster/NowDownloadEu.py @@ -24,16 +24,18 @@ from module.utils import fixup  class NowDownloadEu(SimpleHoster):      __name__ = "NowDownloadEu"      __type__ = "hoster" -    __pattern__ = r"http://(www\.)?nowdownload\.(eu|co)/dl/(?P<ID>[a-z0-9]+)" -    __version__ = "0.02" -    __description__ = """NowDownloadEu""" -    __author_name__ = ("godofdream") +    __pattern__ = r"http://(?:www\.)?nowdownload\.(ch|eu|co)/(dl/|download\.php\?id=)(?P<ID>[a-z0-9]+)" +    __version__ = "0.03" +    __description__ = """NowDownloadCh""" +    __author_name__ = ("godofdream", "Walter Purcaro") +    __author_mail__ = ("", "vuolter@gmail.com") +      FILE_INFO_PATTERN = r'Downloading</span> <br> (?P<N>.*) (?P<S>[0-9,.]+) (?P<U>[kKMG])i?B </h4>'      FILE_OFFLINE_PATTERN = r'(This file does not exist!)'      FILE_TOKEN_PATTERN = r'"(/api/token\.php\?token=[a-z0-9]+)"'      FILE_CONTINUE_PATTERN = r'"(/dl2/[a-z0-9]+/[a-z0-9]+)"'      FILE_WAIT_PATTERN = r'\.countdown\(\{until: \+(\d+),' -    FILE_DOWNLOAD_LINK = r'"(http://f\d+\.nowdownload\.eu/dl/[a-z0-9]+/[a-z0-9]+/[^<>"]*?)"' +    FILE_DOWNLOAD_LINK = r'"(http://f\d+\.nowdownload\.ch/dl/[a-z0-9]+/[a-z0-9]+/[^<>"]*?)"'      FILE_NAME_REPLACEMENTS = [("&#?\w+;", fixup), (r'<[^>]*>', '')] @@ -45,19 +47,21 @@ class NowDownloadEu(SimpleHoster):      def handleFree(self):          tokenlink = re.search(self.FILE_TOKEN_PATTERN, self.html)          continuelink = re.search(self.FILE_CONTINUE_PATTERN, self.html) -        if (not tokenlink) or (not continuelink): +        if not tokenlink or not continuelink:              self.fail('Plugin out of Date') -        wait = 60          found = re.search(self.FILE_WAIT_PATTERN, self.html)          if found:              wait = int(found.group(1)) +        else +            wait = 60 -        self.html = self.load("http://www.nowdownload.eu" + str(tokenlink.group(1))) +        baseurl = "http://www.nowdownload.ch" +        self.html = self.load(baseurl + str(tokenlink.group(1)))          self.setWait(wait)          self.wait() -        self.html = self.load("http://www.nowdownload.eu" + str(continuelink.group(1))) +        self.html = self.load(baseurl + str(continuelink.group(1)))          url = re.search(self.FILE_DOWNLOAD_LINK, self.html)          if not url: diff --git a/module/plugins/hoster/TusfilesNet.py b/module/plugins/hoster/TusfilesNet.py index e4a64cfdc..4db551ee4 100644 --- a/module/plugins/hoster/TusfilesNet.py +++ b/module/plugins/hoster/TusfilesNet.py @@ -5,11 +5,11 @@ from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInf  class TusfilesNet(XFileSharingPro):      __name__ = "TusfilesNet"      __type__ = "hoster" -    __pattern__ = r"http://(www\.)?tusfiles\.net/\w{12}" -    __version__ = "0.01" +    __pattern__ = r"http://(?:www\.)?tusfiles\.net/(?P<ID>[a-zA-Z0-9]{12})" +    __version__ = "0.02"      __description__ = """Tusfiles.net hoster plugin""" -    __author_name__ = ("stickell") -    __author_mail__ = ("l.stickell@yahoo.it") +    __author_name__ = ("stickell", "Walter Purcaro") +    __author_mail__ = ("l.stickell@yahoo.it", "vuolter@gmail.com")      FILE_INFO_PATTERN = r'<li>(?P<N>[^<]+)</li>\s+<li><b>Size:</b> <small>(?P<S>[\d.]+) (?P<U>\w+)</small></li>'      FILE_OFFLINE_PATTERN = r'The file you were looking for could not be found' | 
