summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FileserveCom.py
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-02-01 23:39:33 +0100
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-02-01 23:39:33 +0100
commit78eed3992134312e6640e1ddf367f35b759d9844 (patch)
tree01ae97c552caa2309a681923d5450922f4626017 /module/plugins/hoster/FileserveCom.py
parentclosed #528 - netload.in (diff)
downloadpyload-78eed3992134312e6640e1ddf367f35b759d9844.tar.xz
little plugin fixes
Diffstat (limited to 'module/plugins/hoster/FileserveCom.py')
-rw-r--r--module/plugins/hoster/FileserveCom.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hoster/FileserveCom.py b/module/plugins/hoster/FileserveCom.py
index 759fef96f..04c297661 100644
--- a/module/plugins/hoster/FileserveCom.py
+++ b/module/plugins/hoster/FileserveCom.py
@@ -20,6 +20,7 @@ from module.network.RequestFactory import getURL
from module.plugins.ReCaptcha import ReCaptcha
from module.common.json_layer import json_loads
from module.utils import parseFileSize
+from module.plugins.Plugin import chunks
def checkFile(plugin, urls):
html = getURL(plugin.URLS[1], post = {"urls": "\n".join(urls)}, decode=True)
@@ -43,7 +44,7 @@ class FileserveCom(Hoster):
__name__ = "FileserveCom"
__type__ = "hoster"
__pattern__ = r"http://(?:www\.)?fileserve\.com/file/(?P<id>[^/]+).*"
- __version__ = "0.5"
+ __version__ = "0.51"
__description__ = """Fileserve.Com File Download Hoster"""
__author_name__ = ("jeix", "mkaay", "paul king", "zoidberg")
__author_mail__ = ("jeix@hasnomail.de", "mkaay@mkaay.de", "", "zoidberg@mujmail.cz")
@@ -206,5 +207,5 @@ class FileserveCom(Hoster):
self.account.relogin(self.user)
self.retry(reason=_("Not logged in."))
-def getInfo(urls):
- yield checkFile(FileserveCom, urls) \ No newline at end of file
+def getInfo(urls):
+ for chunk in chunks(urls, 100): yield checkFile(FileserveCom, chunk) \ No newline at end of file