summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-11-19 16:51:45 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-11-19 16:51:45 +0100
commitd0873563bdef8a16deedb904a9f259e8401fdc54 (patch)
tree3159c20d1223ffee55f74c3aad0d2f65a1421896 /pyLoadCore.py
parentmegaupload pw protected files, GUI fixes (diff)
downloadpyload-d0873563bdef8a16deedb904a9f259e8401fdc54.tar.xz
missing update event
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 3a64f9802..01be0e185 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -66,6 +66,8 @@ from module.FileDatabase import PyFile
from module.Scheduler import Scheduler
from module.JsEngine import JsEngine
+from module.PullEvents import UpdateEvent
+
from codecs import getwriter
if os.name == "nt":
enc = "cp850"
@@ -711,11 +713,15 @@ class ServerMethods():
def add_files(self, pid, links):
pid = int(pid)
+ p = self.core.files.getPackage()
self.core.files.addLinks(links, pid)
self.core.log.info(_("Added %(count)d links to package #%(package)d ") % {"count": len(links), "package": pid})
self.core.files.save()
+ e = UpdateEvent("pack", pid, "collector" if not p.queue else "queue")
+ self.core.pullManager.addEvent(e)
+
return pid
def push_package_to_queue(self, id):