diff options
author | Jeix <devnull@localhost> | 2010-11-19 14:15:17 +0100 |
---|---|---|
committer | Jeix <devnull@localhost> | 2010-11-19 14:15:17 +0100 |
commit | c881b83f107e3c5b28bfcc06508d4db128d37e20 (patch) | |
tree | fd3a463b0f5bf3ee45fdfa30db4270609c78dbf3 /pyLoadGui.py | |
parent | closed #153 (diff) | |
download | pyload-c881b83f107e3c5b28bfcc06508d4db128d37e20.tar.xz |
sharecx fix and gui package edit
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-x | pyLoadGui.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py index c52a86052..441b01caa 100755 --- a/pyLoadGui.py +++ b/pyLoadGui.py @@ -21,7 +21,7 @@ import sys -from uuid import uuid4 as uuid +from uuid import uuid4 as uuid # should be above PyQt imports from time import sleep, time from PyQt4.QtCore import * @@ -464,12 +464,18 @@ class main(QObject): """ self.connector.setPause(not status) - def slotAddPackage(self, name, links): + def slotAddPackage(self, name, links, password=None, id=None): """ emitted from main window add package to the collector """ - self.connector.proxy.add_package(name, links) + if id: + self.connector.removePackage(id) + + pack = self.connector.proxy.add_package(name, links) + if password: + data = {"password": password} + self.connector.proxy.set_package_data(pack, data) def slotAddFileToPackage(self, pid, fid): """ |