diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-03 21:20:20 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-03 21:20:20 +0200 |
commit | f6e5359110f4bd5facc04a98f94acbc41b6e5228 (patch) | |
tree | 1f625724951c1b3a848f96c65708f437807f7190 /pyload/database | |
parent | [UpdateManager] Support new plugins structure (diff) | |
download | pyload-f6e5359110f4bd5facc04a98f94acbc41b6e5228.tar.xz |
Update pyload to the new plugins structure
Diffstat (limited to 'pyload/database')
-rw-r--r-- | pyload/database/FileDatabase.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pyload/database/FileDatabase.py b/pyload/database/FileDatabase.py index 54e5450e8..3594da685 100644 --- a/pyload/database/FileDatabase.py +++ b/pyload/database/FileDatabase.py @@ -120,7 +120,7 @@ class FileHandler: def addLinks(self, urls, package): """adds links""" - self.core.hookManager.dispatchEvent("linksAdded", urls, package) + self.core.addonManager.dispatchEvent("linksAdded", urls, package) data = self.core.pluginManager.parseUrls(urls) @@ -166,7 +166,7 @@ class FileHandler: self.db.deletePackage(p) self.core.pullManager.addEvent(e) - self.core.hookManager.dispatchEvent("packageDeleted", id) + self.core.addonManager.dispatchEvent("packageDeleted", id) if id in self.packageCache: del self.packageCache[id] @@ -368,7 +368,7 @@ class FileHandler: """checks if all files are finished and dispatch event""" if not self.getQueueCount(True): - self.core.hookManager.dispatchEvent("allDownloadsFinished") + self.core.addonManager.dispatchEvent("allDownloadsFinished") self.core.log.debug("All downloads finished") return True @@ -381,7 +381,7 @@ class FileHandler: self.resetCount() if not self.db.processcount(1, fid): - self.core.hookManager.dispatchEvent("allDownloadsProcessed") + self.core.addonManager.dispatchEvent("allDownloadsProcessed") self.core.log.debug("All downloads processed") return True @@ -528,7 +528,7 @@ class FileHandler: if not ids or (pyfile.id in ids and len(ids) == 1): if not pyfile.package().setFinished: self.core.log.info(_("Package finished: %s") % pyfile.package().name) - self.core.hookManager.packageFinished(pyfile.package()) + self.core.addonManager.packageFinished(pyfile.package()) pyfile.package().setFinished = True |