summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-04-25 15:31:52 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-04-25 15:31:52 +0200
commit3d1693ec11b02d5bdda1690927b2635f8b285c9b (patch)
tree1d91430fa2f0aff9038ec404c7940c8278aa017f /module/plugins
parentDebridItaliaCom: new hoster supported (diff)
downloadpyload-3d1693ec11b02d5bdda1690927b2635f8b285c9b.tar.xz
UploadedTo: sometimes API returns "can't find request".
Trying three times.
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/UploadedTo.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py
index 5855f118c..b7740bb40 100644
--- a/module/plugins/hoster/UploadedTo.py
+++ b/module/plugins/hoster/UploadedTo.py
@@ -32,7 +32,10 @@ def getAPIData(urls):
post["id_%s" % i] = id
idMap[id] = url
- api = unicode(getURL("http://uploaded.net/api/filemultiple", post=post, decode=False), 'iso-8859-1')
+ for i in xrange(3):
+ api = unicode(getURL("http://uploaded.net/api/filemultiple", post=post, decode=False), 'iso-8859-1')
+ if api != "can't find request":
+ break
result = {}
@@ -82,7 +85,7 @@ class UploadedTo(Hoster):
__name__ = "UploadedTo"
__type__ = "hoster"
__pattern__ = r"https?://[\w\.-]*?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P<ID>\w+)"
- __version__ = "0.68"
+ __version__ = "0.69"
__description__ = """Uploaded.net Download Hoster"""
__author_name__ = ("spoob", "mkaay", "zoidberg", "netpok", "stickell")
__author_mail__ = ("spoob@pyload.org", "mkaay@mkaay.de", "zoidberg@mujmail.cz", "netpok@gmail.com", "l.stickell@yahoo.it")