summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UploadedTo.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-08-07 17:40:43 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-08-07 17:40:43 +0200
commitafb5e3371a9b43dff97131440affcc2c68ec5593 (patch)
tree7d2c9f1b8a016fc115881d607fcdeb2c12b30703 /module/plugins/hoster/UploadedTo.py
parenthook improvements (diff)
downloadpyload-afb5e3371a9b43dff97131440affcc2c68ec5593.tar.xz
file info prefetching (RapidshareCom UploadedTo), download folder fix, SerienjunkiesOrg fix
Diffstat (limited to 'module/plugins/hoster/UploadedTo.py')
-rw-r--r--module/plugins/hoster/UploadedTo.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py
index 573119680..2226f2943 100644
--- a/module/plugins/hoster/UploadedTo.py
+++ b/module/plugins/hoster/UploadedTo.py
@@ -29,6 +29,11 @@ class UploadedTo(Hoster):
self.prepare()
self.proceed()
+
+ def getInfo(self):
+ self.download_api_data()
+ self.pyfile.name = self.api_data["filename"]
+ self.pyfile.sync()
def prepare(self):
tries = 0
@@ -66,7 +71,9 @@ class UploadedTo(Hoster):
self.fail("Error while preparing DL")
return True
- def download_api_data(self):
+ def download_api_data(self, force=False):
+ if self.api_data and not force:
+ return
match = re.compile(self.__pattern__).search(self.pyfile.url)
if match:
src = self.load("http://uploaded.to/api/file", cookies=False, get={"id": match.group(1).split("/")[0]})