diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-08 16:03:24 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-08 16:03:24 +0200 |
commit | 0f90f432538ae73bbc975e6b801a3c3bb60c91b8 (patch) | |
tree | 87b4cb993b80ad2e298041746ae18e46baf670bb | |
parent | closed #359 (diff) | |
download | pyload-0f90f432538ae73bbc975e6b801a3c3bb60c91b8.tar.xz |
disabled GUI, fix captcha
-rw-r--r-- | module/gui/ConnectionManager.py | 8 | ||||
-rw-r--r-- | module/plugins/hooks/IRCInterface.py | 2 | ||||
-rwxr-xr-x | pyLoadGui.py | 11 |
3 files changed, 16 insertions, 5 deletions
diff --git a/module/gui/ConnectionManager.py b/module/gui/ConnectionManager.py index 7a7a25f5f..8bf4ff24b 100644 --- a/module/gui/ConnectionManager.py +++ b/module/gui/ConnectionManager.py @@ -26,7 +26,13 @@ from uuid import uuid4 as uuid class ConnectionManager(QWidget): def __init__(self): QWidget.__init__(self) - + + QMessageBox.warning(self, 'Warning', + "We are sorry but the GUI is not stable anymore. Please use the webinterface for much better experience. \n", QMessageBox.Ok) + + return + + mainLayout = QHBoxLayout() buttonLayout = QVBoxLayout() diff --git a/module/plugins/hooks/IRCInterface.py b/module/plugins/hooks/IRCInterface.py index 28087a126..e2737dc3a 100644 --- a/module/plugins/hooks/IRCInterface.py +++ b/module/plugins/hooks/IRCInterface.py @@ -89,7 +89,7 @@ class IRCInterface(Thread, Hook): page = getURL("http://www.freeimagehosting.net/upload.php", post={"attached" : (FORM_FILE, task.captchaFile)}, multipart=True) - url = re.search(r"\[url=http://www.freeimagehosting.net/\]\[img\]([^\[]+)\[/img\]\[/url\]", page).group(1) + url = re.search(r"\[img\]([^\[]+)\[/img\]\[/url\]", page).group(1) self.response(_("New Captcha Request: %s") % url) self.response(_("Answer with 'c %s text on the captcha'") % task.id) diff --git a/pyLoadGui.py b/pyLoadGui.py index 33326c416..298f227ce 100755 --- a/pyLoadGui.py +++ b/pyLoadGui.py @@ -104,11 +104,16 @@ class main(QObject): except: translation.install(unicode=False) - self.connector = Connector() - self.mainWindow = MainWindow(self.connector) + + #self.connector = Connector() + #self.mainWindow = MainWindow(self.connector) self.connWindow = ConnectionManager() self.mainloop = self.Loop(self) - self.connectSignals() + self.connWindow.show() + + sys.exit() + + #self.connectSignals() self.checkClipboard = False default = self.refreshConnections() |