From 957c62e629cda43a078ed9496b30f877bfd119bd Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 25 Jan 2015 19:21:01 +0100 Subject: [UploadedTo] Fix https://github.com/pyload/pyload/issues/1069#issuecomment-71370778 --- module/plugins/hoster/UploadedTo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/UploadedTo.py') diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index 833468a80..d5c58fa6f 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -94,7 +94,7 @@ def getInfo(urls): class UploadedTo(Hoster): __name__ = "UploadedTo" __type__ = "hoster" - __version__ = "0.75" + __version__ = "0.76" __pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P\w+)' @@ -206,7 +206,7 @@ class UploadedTo(Hoster): recaptcha = ReCaptcha(self) for _i in xrange(5): - challenge, response = recaptcha.challenge() + response, challenge = recaptcha.challenge() options = {"recaptcha_challenge_field": challenge, "recaptcha_response_field": response} self.wait() -- cgit v1.2.3 From e704a6cdd07c01a2f79eb851d7f2ecdf78da77fd Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Wed, 28 Jan 2015 01:18:23 +0100 Subject: [UploadedTo] Rewritten --- module/plugins/hoster/UploadedTo.py | 263 ++++++++++-------------------------- 1 file changed, 73 insertions(+), 190 deletions(-) (limited to 'module/plugins/hoster/UploadedTo.py') diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index d5c58fa6f..227e5e0d7 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -9,237 +9,120 @@ import re from time import sleep from module.network.RequestFactory import getURL -from module.plugins.Hoster import Hoster -from module.plugins.Plugin import chunks from module.plugins.internal.CaptchaService import ReCaptcha -from module.utils import html_unescape, parseFileSize +from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo -key = "bGhGMkllZXByd2VEZnU5Y2NXbHhYVlZ5cEE1bkEzRUw=".decode('base64') - - -def getID(url): - """ returns id from file url""" - m = re.match(UploadedTo.__pattern__, url) - return m.group('ID') - - -def getAPIData(urls): - post = {"apikey": key} - - idMap = {} - - for i, url in enumerate(urls): - id = getID(url) - post['id_%s' % i] = id - idMap[id] = url - - for _i in xrange(5): - api = unicode(getURL("http://uploaded.net/api/filemultiple", post=post, decode=False), 'iso-8859-1') - if api != "can't find request": - break - else: - sleep(3) - - result = {} - - if api: - for line in api.splitlines(): - data = line.split(",", 4) - if data[1] in idMap: - result[data[1]] = (data[0], data[2], data[4], data[3], idMap[data[1]]) - - return result - - -def parseFileInfo(self, url='', html=''): - if not html and hasattr(self, "html"): - html = self.html +class UploadedTo(SimpleHoster): + __name__ = "UploadedTo" + __type__ = "hoster" + __version__ = "0.77" - name = url - size = 0 - fileid = None + __pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P\w+)' - if re.search(self.OFFLINE_PATTERN, html): - # File offline - status = 1 - else: - m = re.search(self.INFO_PATTERN, html) - if m: - name, fileid = html_unescape(m.group('N')), m.group('ID') - size = parseFileSize(m.group('S')) - status = 2 - else: - status = 3 + __description__ = """Uploaded.net hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] - return name, size, status, fileid + API_KEY = "bGhGMkllZXByd2VEZnU5Y2NXbHhYVlZ5cEE1bkEzRUw=" #@NOTE: base64 encoded -def getInfo(urls): - for chunk in chunks(urls, 80): - result = [] + URL_REPLACEMENTS = [(__pattern__ + ".*", r'http://uploaded.net/file/\g')] - api = getAPIData(chunk) + INFO_PATTERN = r'(?P[^<]+)  \s*]*>(?P[^<]+)' + OFFLINE_PATTERN = r'Error: 404' - for data in api.itervalues(): - if data[0] == "online": - result.append((html_unescape(data[2]), data[1], 2, data[4])) + LINK_PREMIUM_PATTERN = r'
\w+)' + if api[0] == "online": + info.update({'name': api[4], 'size': api[2], 'status': 2}) - __description__ = """Uploaded.net hoster plugin""" - __license__ = "GPLv3" - __authors__ = [("spoob", "spoob@pyload.org"), - ("mkaay", "mkaay@mkaay.de"), - ("zoidberg", "zoidberg@mujmail.cz"), - ("netpok", "netpok@gmail.com"), - ("stickell", "l.stickell@yahoo.it")] + elif api[0] == "offline": + info['status'] = 1 + break + else: + sleep(3) - INFO_PATTERN = r'(?P[^<]+)  \s*]*>(?P[^<]+)' - OFFLINE_PATTERN = r'Error: 404' - DL_LIMIT_PATTERN = r'You have reached the max. number of possible free downloads for this hour' + return info def setup(self): self.multiDL = self.resumeDownload = self.premium self.chunkLimit = 1 # critical problems with more chunks - - self.fileID = getID(self.pyfile.url) - self.pyfile.url = "http://uploaded.net/file/%s" % self.fileID - - - def process(self, pyfile): self.load("http://uploaded.net/language/en", just_header=True) - api = getAPIData([pyfile.url]) - # TODO: fallback to parse from site, because api sometimes delivers wrong status codes + def checkErrors(self): + if 'var free_enabled = false;' in self.html: + self.logError(_("Free-download capacities exhausted")) + self.retry(24, 5 * 60) - if not api: - self.logWarning(_("No response for API call")) + m = re.search(r"Current waiting period: (\d+) seconds", self.html) + if m: + self.wait(m.group(1)) + else: + self.fail(_("File not downloadable for free users")) - self.html = unicode(self.load(pyfile.url, decode=False), 'iso-8859-1') - name, size, status, self.fileID = parseFileInfo(self) - self.logDebug(name, size, status, self.fileID) - if status == 1: - self.offline() - elif status == 2: - pyfile.name, pyfile.size = name, size - else: - self.error(_("file info")) + if "limit-size" in self.html: + self.fail(_("File too big for free download")) - elif api == 'Access denied': - self.fail(_("API key invalid")) + elif "limit-slot" in self.html: # Temporary restriction so just wait a bit + self.wait(30 * 60, True) + self.retry() - else: - if self.fileID not in api: - self.offline() + elif "limit-parallel" in self.html: + self.fail(_("Cannot download in parallel")) - self.data = api[self.fileID] - if self.data[0] != "online": - self.offline() + elif "limit-dl" in self.html or self.DL_LIMIT_ERROR in self.html: # limit-dl + self.wait(3 * 60 * 60, True) + self.retry() - pyfile.name = html_unescape(self.data[2]) + elif '"err":"captcha"' in self.html: + self.invalidCaptcha() - # pyfile.name = self.get_file_name() - if self.premium: - self.handlePremium() - else: - self.handleFree() - - - def handlePremium(self): - info = self.account.getAccountInfo(self.user, True) - self.logDebug("%(name)s: Use Premium Account (%(left)sGB left)" % {"name": self.__name__, - "left": info['trafficleft'] / 1024 / 1024}) - if int(self.data[1]) / 1024 > info['trafficleft']: - self.logInfo(_("Not enough traffic left")) - self.account.empty(self.user) - self.resetAccount() - self.fail(_("Traffic exceeded")) - - header = self.load("http://uploaded.net/file/%s" % self.fileID, just_header=True) - if 'location' in header: - #Direct download - self.logDebug("Direct download link detected") - self.download(header['location']) - else: - #Indirect download - self.html = self.load("http://uploaded.net/file/%s" % self.fileID) - m = re.search(r'
(\d+) seconds", self.html) - if m is None: - self.fail(_("File not downloadable for free users")) - self.setWait(int(m.group(1))) + except Exception: + pass - self.html = self.load("http://uploaded.net/js/download.js", decode=True) + self.checkErrors() - url = "http://uploaded.net/io/ticket/captcha/%s" % self.fileID - downloadURL = "" - recaptcha = ReCaptcha(self) + def checkFile(): + if self.checkDownload({'limit-dl': self.DL_LIMIT_ERROR}): + self.wait(3 * 60 * 60, True) + self.retry() - for _i in xrange(5): - response, challenge = recaptcha.challenge() - options = {"recaptcha_challenge_field": challenge, "recaptcha_response_field": response} - self.wait() - - result = self.load(url, post=options) - self.logDebug("Result: %s" % result) - - if "limit-size" in result: - self.fail(_("File too big for free download")) - elif "limit-slot" in result: # Temporary restriction so just wait a bit - self.setWait(30 * 60, True) - self.wait() - self.retry() - elif "limit-parallel" in result: - self.fail(_("Cannot download in parallel")) - elif "limit-dl" in result or self.DL_LIMIT_PATTERN in result: # limit-dl - self.setWait(3 * 60 * 60, True) - self.wait() - self.retry() - elif '"err":"captcha"' in result: - self.invalidCaptcha() - elif "type:'download'" in result: - self.correctCaptcha() - downloadURL = re.search("url:'([^']+)", result).group(1) - break - else: - self.error(_("Unknown error: %s") % result) + return super(UploadedTo, self).checkFile() - if not downloadURL: - self.fail(_("No Download url retrieved/all captcha attempts failed")) - self.download(downloadURL, disposition=True) - check = self.checkDownload({"limit-dl": self.DL_LIMIT_PATTERN}) - if check == "limit-dl": - self.setWait(3 * 60 * 60, True) - self.wait() - self.retry() +getInfo = create_getInfo(UploadedTo) -- cgit v1.2.3 From 997ee55dc135dd5c9877a4617dc5ce767e685c11 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Wed, 28 Jan 2015 22:16:29 +0100 Subject: [UploadedTo] Fix https://github.com/pyload/pyload/issues/1092 --- module/plugins/hoster/UploadedTo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/UploadedTo.py') diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index 227e5e0d7..9aef13cde 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -16,7 +16,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class UploadedTo(SimpleHoster): __name__ = "UploadedTo" __type__ = "hoster" - __version__ = "0.77" + __version__ = "0.78" __pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P\w+)' @@ -117,7 +117,7 @@ class UploadedTo(SimpleHoster): self.checkErrors() - def checkFile(): + def checkFile(self): if self.checkDownload({'limit-dl': self.DL_LIMIT_ERROR}): self.wait(3 * 60 * 60, True) self.retry() -- cgit v1.2.3 From 9619717bbba999a4792a40af6a82cf4ed87ace46 Mon Sep 17 00:00:00 2001 From: oliverrahner Date: Thu, 29 Jan 2015 18:42:58 +0100 Subject: Update UploadedTo.py Dirty fix for "File not downloaded for free users" error. Should be fixed by handling free and premium downloads separately. --- module/plugins/hoster/UploadedTo.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'module/plugins/hoster/UploadedTo.py') diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index 9aef13cde..150b69534 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -16,7 +16,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class UploadedTo(SimpleHoster): __name__ = "UploadedTo" __type__ = "hoster" - __version__ = "0.78" + __version__ = "0.79" __pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P\w+)' @@ -72,11 +72,12 @@ class UploadedTo(SimpleHoster): self.logError(_("Free-download capacities exhausted")) self.retry(24, 5 * 60) - m = re.search(r"Current waiting period: (\d+) seconds", self.html) - if m: - self.wait(m.group(1)) - else: - self.fail(_("File not downloadable for free users")) + if not self.premium: + m = re.search(r"Current waiting period: (\d+) seconds", self.html) + if m: + self.wait(m.group(1)) + else: + self.fail(_("File not downloadable for free users")) if "limit-size" in self.html: self.fail(_("File too big for free download")) -- cgit v1.2.3 From 8ae95c4b389c916b8f3b961be1a4eb145f0b2381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20H=C3=B6rnlein?= Date: Sun, 1 Feb 2015 15:34:26 +0100 Subject: Fixed UploadedTo File not downloadable for free users --- module/plugins/hoster/UploadedTo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/UploadedTo.py') diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index 150b69534..4fb39ff0e 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -16,7 +16,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class UploadedTo(SimpleHoster): __name__ = "UploadedTo" __type__ = "hoster" - __version__ = "0.79" + __version__ = "0.80" __pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P\w+)' @@ -77,7 +77,8 @@ class UploadedTo(SimpleHoster): if m: self.wait(m.group(1)) else: - self.fail(_("File not downloadable for free users")) + if not "type:'download'" in self.html: + self.fail(_("File not downloadable for free users")) if "limit-size" in self.html: self.fail(_("File too big for free download")) -- cgit v1.2.3 From 3ab6ddb2ddc8a2f9aae9daa7fbd132b6e0cbd98a Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 1 Feb 2015 23:35:06 +0100 Subject: [UploadedTo] Improve checkErrors routine --- module/plugins/hoster/UploadedTo.py | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'module/plugins/hoster/UploadedTo.py') diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index 4fb39ff0e..b56ce8412 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -1,8 +1,4 @@ # -*- coding: utf-8 -*- -# -# Test links: -# http://ul.to/044yug9o -# http://ul.to/gzfhd0xs import re @@ -16,7 +12,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class UploadedTo(SimpleHoster): __name__ = "UploadedTo" __type__ = "hoster" - __version__ = "0.80" + __version__ = "0.81" __pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P\w+)' @@ -34,6 +30,7 @@ class UploadedTo(SimpleHoster): LINK_PREMIUM_PATTERN = r'
(\d+)' DL_LIMIT_ERROR = r'You have reached the max. number of possible free downloads for this hour' @@ -72,15 +69,7 @@ class UploadedTo(SimpleHoster): self.logError(_("Free-download capacities exhausted")) self.retry(24, 5 * 60) - if not self.premium: - m = re.search(r"Current waiting period: (\d+) seconds", self.html) - if m: - self.wait(m.group(1)) - else: - if not "type:'download'" in self.html: - self.fail(_("File not downloadable for free users")) - - if "limit-size" in self.html: + elif "limit-size" in self.html: self.fail(_("File too big for free download")) elif "limit-slot" in self.html: # Temporary restriction so just wait a bit @@ -97,6 +86,11 @@ class UploadedTo(SimpleHoster): elif '"err":"captcha"' in self.html: self.invalidCaptcha() + else: + m = re.search(self.WAIT_PATTERN, self.html) + if m: + self.wait(m.group(1)) + def handleFree(self, pyfile): self.html = self.load("http://uploaded.net/js/download.js", decode=True) -- cgit v1.2.3 From fb6585452b8dc10f21005293dd3b9fbb5c41073a Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 2 Feb 2015 00:14:56 +0100 Subject: [UploadedTo] Fix apiInfo --- module/plugins/hoster/UploadedTo.py | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'module/plugins/hoster/UploadedTo.py') diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index b56ce8412..995b766b4 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -21,13 +21,10 @@ class UploadedTo(SimpleHoster): __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] - API_KEY = "bGhGMkllZXByd2VEZnU5Y2NXbHhYVlZ5cEE1bkEzRUw=" #@NOTE: base64 encoded + API_KEY = "lhF2IeeprweDfu9ccWlxXVVypA5nA3EL" URL_REPLACEMENTS = [(__pattern__ + ".*", r'http://uploaded.net/file/\g')] - INFO_PATTERN = r'(?P[^<]+)  \s*]*>(?P[^<]+)' - OFFLINE_PATTERN = r'Error: 404' - LINK_PREMIUM_PATTERN = r'
(\d+)' @@ -39,18 +36,16 @@ class UploadedTo(SimpleHoster): info = super(UploadedTo, cls).apiInfo(url) for _i in xrange(5): - api = getURL("http://uploaded.net/api/filemultiple", - post={"apikey": cls.API_KEY.decode('base64'), 'id_0': re.match(cls.__pattern__, url).group('ID')}, + html = getURL("http://uploaded.net/api/filemultiple", + get={"apikey": cls.API_KEY, 'id_0': re.match(cls.__pattern__, url).group('ID')}, decode=True) - if api != "can't find request": - api = api.splitlines()[0].split(",", 4) - - if api[0] == "online": - info.update({'name': api[4], 'size': api[2], 'status': 2}) - elif api[0] == "offline": + if html != "can't find request": + api = html.split(",", 4) + if api[0] == "offline": info['status'] = 1 - + else: + info.update({'name': api[4], 'size': api[2], 'status': 2}) break else: sleep(3) -- cgit v1.2.3 From e51b2e4169736a727ab5c19224c7ad68b08113ed Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 2 Feb 2015 00:32:30 +0100 Subject: [XdadevelopersCom] Cleanup --- module/plugins/hoster/UploadedTo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/UploadedTo.py') diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index 995b766b4..0022fc94f 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -37,8 +37,8 @@ class UploadedTo(SimpleHoster): for _i in xrange(5): html = getURL("http://uploaded.net/api/filemultiple", - get={"apikey": cls.API_KEY, 'id_0': re.match(cls.__pattern__, url).group('ID')}, - decode=True) + get={"apikey": cls.API_KEY, 'id_0': re.match(cls.__pattern__, url).group('ID')}, + decode=True) if html != "can't find request": api = html.split(",", 4) -- cgit v1.2.3 From 252e75ffcbcafc2e7e32d0e71f0d7a3c478cf6ba Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 2 Feb 2015 16:36:49 +0100 Subject: [UploadedTo] Improve apiInfo (2) --- module/plugins/hoster/UploadedTo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/plugins/hoster/UploadedTo.py') diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index 0022fc94f..42ad3e06d 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -12,7 +12,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class UploadedTo(SimpleHoster): __name__ = "UploadedTo" __type__ = "hoster" - __version__ = "0.81" + __version__ = "0.82" __pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P\w+)' @@ -42,10 +42,10 @@ class UploadedTo(SimpleHoster): if html != "can't find request": api = html.split(",", 4) - if api[0] == "offline": - info['status'] = 1 - else: + if api[0] == "online": info.update({'name': api[4], 'size': api[2], 'status': 2}) + else: + info['status'] = 1 break else: sleep(3) -- cgit v1.2.3 From 7b6a9a68dfbf67f075bfe86e67be5390da4b8c1d Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 2 Feb 2015 18:48:06 +0100 Subject: Fix https://github.com/pyload/pyload/issues/1134 --- module/plugins/hoster/UploadedTo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/plugins/hoster/UploadedTo.py') diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index 42ad3e06d..c83814198 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -43,7 +43,7 @@ class UploadedTo(SimpleHoster): if html != "can't find request": api = html.split(",", 4) if api[0] == "online": - info.update({'name': api[4], 'size': api[2], 'status': 2}) + info.update({'name': api[4].strip(), 'size': api[2], 'status': 2}) else: info['status'] = 1 break -- cgit v1.2.3 From 689f87ba392dcfbc8eb34a4c445bbca6ec16f739 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Wed, 11 Feb 2015 04:59:24 +0100 Subject: [UploadedTo] Fix setup --- module/plugins/hoster/UploadedTo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/UploadedTo.py') diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index c83814198..2c549f5ba 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -12,7 +12,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class UploadedTo(SimpleHoster): __name__ = "UploadedTo" __type__ = "hoster" - __version__ = "0.82" + __version__ = "0.83" __pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P\w+)' @@ -56,7 +56,6 @@ class UploadedTo(SimpleHoster): def setup(self): self.multiDL = self.resumeDownload = self.premium self.chunkLimit = 1 # critical problems with more chunks - self.load("http://uploaded.net/language/en", just_header=True) def checkErrors(self): @@ -88,6 +87,8 @@ class UploadedTo(SimpleHoster): def handleFree(self, pyfile): + self.load("http://uploaded.net/language/en", just_header=True) + self.html = self.load("http://uploaded.net/js/download.js", decode=True) recaptcha = ReCaptcha(self) -- cgit v1.2.3 From ee6746b16c8f56d24f48f55387fee799d8e28b4d Mon Sep 17 00:00:00 2001 From: Stefano Date: Wed, 11 Feb 2015 18:40:04 +0100 Subject: [UpdateManager] Bump version number to refresh broken plugins See #1168 --- module/plugins/hoster/UploadedTo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/plugins/hoster/UploadedTo.py') diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index 2c549f5ba..83a16c251 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -12,7 +12,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class UploadedTo(SimpleHoster): __name__ = "UploadedTo" __type__ = "hoster" - __version__ = "0.83" + __version__ = "0.84" __pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P\w+)' -- cgit v1.2.3