def allNoProgress(_in, _out, ignore): try: zin = zipfile.ZipFile(_in, 'r') zin.extractall(_out) except Exception, e: wiz.log(str(e)) return False
def allWithProgress(_in, _out, dp, ignore, title): count = 0; errors = 0; error = ''; update = 0; size = 0; excludes = [] try: zin = zipfile.ZipFile(_in, 'r') except Exception, e: errors += 1; error += '%s\n' % e wiz.log('Error Checking Zip: %s' % str(e), xbmc.LOGERROR) return update, errors, error