diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-06-30 11:12:21 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-06-30 11:12:21 +0200 |
commit | 9ce5f2b521e271c1f8b9d36464fc2031bc70bb81 (patch) | |
tree | 947bfec5918f9b002bc7555c74885f98de6e5990 | |
parent | basic gui functions are working (diff) | |
download | pyload-9ce5f2b521e271c1f8b9d36464fc2031bc70bb81.tar.xz |
rapidshare fix
-rw-r--r-- | Plugins/RapidshareCom.py | 9 | ||||
-rwxr-xr-x | pyLoadGui.py | 7 |
2 files changed, 13 insertions, 3 deletions
diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py index b34576d23..35555eeb1 100644 --- a/Plugins/RapidshareCom.py +++ b/Plugins/RapidshareCom.py @@ -47,12 +47,17 @@ class RapidshareCom(Plugin): pyfile.status.filename = self.get_file_name() pyfile.status.waituntil = self.time_plus_wait - pyfile.status.url = self.get_file_url() - pyfile.status.want_reconnect = self.want_reconnect + pyfile.status.want_reconnect = self.want_reconnect thread.wait(self.parent) + if self.want_reconnect: + self.download_html() + self.download_serverhtml() + + pyfile.status.url = self.get_file_url() + return True def download_html(self): diff --git a/pyLoadGui.py b/pyLoadGui.py index d508db540..5b53788b2 100755 --- a/pyLoadGui.py +++ b/pyLoadGui.py @@ -207,6 +207,7 @@ class Pyload_Main_Gui(wx.Frame): menu_pyload = wx.Menu() self.submenu_pyload_connect = menu_pyload.Append(-1, 'Connect', 'Connect to pyLoad') self.submenu_pyload_disconnect = menu_pyload.Append(-1, 'Disconnect', 'Disconnect') + self.submenu_pyload_shutdown = menu_pyload.Append(-1, 'Shutdown', 'Shutdown pyLoad Core') menubar.Append(menu_pyload, '&pyLoad') self.SetMenuBar(menubar) @@ -239,6 +240,7 @@ class Pyload_Main_Gui(wx.Frame): self.Bind(wx.EVT_MENU, self.exit_button_clicked, submenu_exit) self.Bind(wx.EVT_MENU, self.connect, self.submenu_pyload_connect) self.Bind(wx.EVT_MENU, self.disconnect, self.submenu_pyload_disconnect) + self.Bind(wx.EVT_MENU, self.shutdown, self.submenu_pyload_shutdown) self.Bind(wx.EVT_TOOL, self.add_button_clicked, add) self.Bind(wx.EVT_TOOL, self.delete_button_clicked, delete) self.Bind(wx.EVT_TOOL, self.up_button_clicked, up) @@ -279,7 +281,10 @@ class Pyload_Main_Gui(wx.Frame): def disconnect(self, event): self.thread.socket.close_when_done() self.SetStatusText('') - + + def shutdown(self, event): + self.thread.push_exec("kill") + def add_button_clicked(self, event): #test #self.thread.push_exec("get_downloads") |