From e00ef98491f79ae8aa972ae1473dae4a7b78c07e Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 13 Apr 2015 17:20:59 +0200 Subject: Cleanup --- pyload/plugin/addon/ExtractArchive.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'pyload/plugin/addon/ExtractArchive.py') diff --git a/pyload/plugin/addon/ExtractArchive.py b/pyload/plugin/addon/ExtractArchive.py index d94c0ca18..a52b55f0a 100644 --- a/pyload/plugin/addon/ExtractArchive.py +++ b/pyload/plugin/addon/ExtractArchive.py @@ -14,6 +14,7 @@ if sys.version_info < (2, 7) and os.name != "nt": import errno import subprocess + def _eintr_retry_call(func, *args): while True: try: @@ -26,6 +27,8 @@ if sys.version_info < (2, 7) and os.name != "nt": # unsued timeout option for older python version + + def wait(self, timeout=0): """Wait for child process to terminate. Returns returncode attribute.""" @@ -190,6 +193,8 @@ class ExtractArchive(Addon): @threaded + + def extractQueued(self, thread): packages = self.queue.get() while packages: @@ -206,6 +211,8 @@ class ExtractArchive(Addon): @Expose + + def extractPackage(self, *ids): """ Extract packages with given id""" for id in ids: @@ -231,6 +238,8 @@ class ExtractArchive(Addon): @Expose + + def extract(self, ids, thread=None): #@TODO: Use pypack, not pid to improve method usability if not ids: return False @@ -503,6 +512,8 @@ class ExtractArchive(Addon): @Expose + + def getPasswords(self, reload=True): """ List of saved passwords """ if reload: @@ -528,6 +539,8 @@ class ExtractArchive(Addon): @Expose + + def addPassword(self, password): """ Adds a password to saved list""" try: -- cgit v1.2.3