diff options
| author | 2010-03-01 19:47:27 +0100 | |
|---|---|---|
| committer | 2010-03-01 19:47:27 +0100 | |
| commit | e4b1bc88a1e0fc88a8769860a32ccd342e278fb1 (patch) | |
| tree | 8f00997a74e44808227fd73d47b71c4f6fa298b3 /module/plugins | |
| parent | webinterface improvments + server crash fix (diff) | |
| download | pyload-e4b1bc88a1e0fc88a8769860a32ccd342e278fb1.tar.xz | |
webif. icons, storage.to fix
Diffstat (limited to 'module/plugins')
| -rw-r--r-- | module/plugins/hoster/StorageTo.py | 14 | 
1 files changed, 11 insertions, 3 deletions
| diff --git a/module/plugins/hoster/StorageTo.py b/module/plugins/hoster/StorageTo.py index dbff844ad..a9b1ec4c2 100644 --- a/module/plugins/hoster/StorageTo.py +++ b/module/plugins/hoster/StorageTo.py @@ -48,7 +48,12 @@ class StorageTo(Plugin):          pyfile.status.waituntil = self.time_plus_wait          pyfile.status.want_reconnect = self.want_reconnect -        thread.wait(self.parent) +        while self.want_reconnect: +            thread.wait(self.parent) +            self.download_api_data() +            self.get_wait_time() +            pyfile.status.waituntil = self.time_plus_wait +            pyfile.status.want_reconnect = self.want_reconnect          pyfile.status.url = self.get_file_url() @@ -73,7 +78,10 @@ class StorageTo(Plugin):              self.download_api_data()          if self.api_data["state"] == "wait":              self.want_reconnect = True -        self.time_plus_wait = time() + int(self.api_data["countdown"]) +        else: +            self.want_reconnect = False +         +        self.time_plus_wait = time() + int(self.api_data["countdown"]) + 3 @@ -98,7 +106,7 @@ class StorageTo(Plugin):          if not self.html:              self.download_html()          file_name_pattern = r"<span class=\"orange\">Downloading:</span>(.*?)<span class=\"light\">(.*?)</span>" -        return re.search(file_name_pattern, self.html).group(1) +        return re.search(file_name_pattern, self.html).group(1).strip()      def proceed(self, url, location):          self.req.download(url, location, cookies=True) | 
