summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/addon/UnSkipOnFail.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/addon/UnSkipOnFail.py')
-rw-r--r--pyload/plugins/addon/UnSkipOnFail.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/pyload/plugins/addon/UnSkipOnFail.py b/pyload/plugins/addon/UnSkipOnFail.py
index 7ab069e93..5122e21eb 100644
--- a/pyload/plugins/addon/UnSkipOnFail.py
+++ b/pyload/plugins/addon/UnSkipOnFail.py
@@ -8,14 +8,15 @@ from pyload.utils import fs_encode
class UnSkipOnFail(Addon):
- __name__ = "UnSkipOnFail"
- __type__ = "addon"
+ __name__ = "UnSkipOnFail"
+ __type__ = "addon"
__version__ = "0.01"
__config__ = [("activated", "bool", "Activated", True)]
__description__ = """When a download fails, restart skipped duplicates"""
- __authors__ = [("hagg", None)]
+ __license__ = "GPLv3"
+ __authors__ = [("hagg", None)]
def downloadFailed(self, pyfile):
@@ -31,6 +32,7 @@ class UnSkipOnFail(Addon):
self.logInfo(_('restart "%s" (pid:%s)') % (pyfile_name, lpid))
self.setLinkStatus(link, "queued")
+
def findDuplicates(self, pyfile):
""" Search all packages for duplicate links to "pyfile".
Duplicates are links that would overwrite "pyfile".
@@ -60,6 +62,7 @@ class UnSkipOnFail(Addon):
dups.append(link)
return dups
+
def setLinkStatus(self, link, new_status):
""" Change status of "link" to "new_status".
"link" has to be a valid FileData object,