summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-26 20:50:50 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-26 20:50:50 +0200
commitaf32089d20dc7e1d451bedeb0c235b3a2cb7f1b4 (patch)
tree297813893dec03d3568b0bdb8eaa6b556b251a7a /module/plugins
parentmirror detection/handling (diff)
downloadpyload-af32089d20dc7e1d451bedeb0c235b3a2cb7f1b4.tar.xz
skip only if file exists
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/Plugin.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index cffbb8acb..51ad2459b 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -465,7 +465,12 @@ class Plugin(object):
#TODO check same packagenames
pyfile = self.core.db.findDuplicates(self.pyfile.id, self.pyfile.packageid, self.pyfile.name)
if pyfile:
- raise SkipDownload(pyfile[0])
+ download_folder = self.config['general']['download_folder']
+ location = save_join(download_folder, pack.folder)
+ if exists(save_join(location, self.pyfile.name)):
+ raise SkipDownload(pyfile[0])
+
+ self.log.debug("File %s not skipped, because it does not exists." % self.pyfile.name)
def clean(self):
""" clean everything and remove references """