From 085b05a19d50016a72a3d2312dc94722959d35aa Mon Sep 17 00:00:00 2001 From: emijrp Date: Sun, 8 Apr 2012 09:25:41 +0000 Subject: [PATCH] launcher.py git-svn-id: https://wikiteam.googlecode.com/svn/trunk@503 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95 --- batchdownload/launcher.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/batchdownload/launcher.py b/batchdownload/launcher.py index 27f5310..9c26b33 100644 --- a/batchdownload/launcher.py +++ b/batchdownload/launcher.py @@ -25,6 +25,7 @@ wikis = f.read().splitlines() f.close() for wiki in wikis: + skip = False wikiname = re.sub(r'(\.|^www\.|\/api\.php)', '', wiki.lower().split('://')[1]) wikiname = re.sub('[-/]', '_', wikiname) wikidir = '' @@ -37,8 +38,12 @@ for wiki in wikis: if f.startswith(wikiname) and f.endswith('.7z'): print 'This wiki was downloaded and compressed before in:', f print 'Skiping...' + skip = True prefix = wikidir.split('-wikidump')[0] + if skip: + continue + if wikidir: #resume print 'Resuming download, using directory', wikidir os.system('python dumpgenerator.py --api=%s --xml --images --resume --path=%s' % (wiki, wikidir))