|
@ -224,10 +224,14 @@ class DirectUnpacker(threading.Thread): |
|
|
self.unpack_time += time.time() - start_time |
|
|
self.unpack_time += time.time() - start_time |
|
|
ACTIVE_UNPACKERS.remove(self) |
|
|
ACTIVE_UNPACKERS.remove(self) |
|
|
|
|
|
|
|
|
|
|
|
# Take note of the correct password |
|
|
|
|
|
if self.nzo.password and not self.nzo.correct_password: |
|
|
|
|
|
self.nzo.correct_password = self.nzo.password |
|
|
|
|
|
|
|
|
# Add to success |
|
|
# Add to success |
|
|
rarfile_path = os.path.join(self.nzo.download_path, self.rarfile_nzf.filename) |
|
|
rarfile_path = os.path.join(self.nzo.download_path, self.rarfile_nzf.filename) |
|
|
self.success_sets[self.cur_setname] = ( |
|
|
self.success_sets[self.cur_setname] = ( |
|
|
rar_volumelist(rarfile_path, self.nzo.password, rarfiles), |
|
|
rar_volumelist(rarfile_path, self.nzo.correct_password, rarfiles), |
|
|
extracted, |
|
|
extracted, |
|
|
) |
|
|
) |
|
|
logging.info("DirectUnpack completed for %s", self.cur_setname) |
|
|
logging.info("DirectUnpack completed for %s", self.cur_setname) |
|
@ -364,7 +368,9 @@ class DirectUnpacker(threading.Thread): |
|
|
extraction_path, _, _, one_folder, _ = self.unpack_dir_info |
|
|
extraction_path, _, _, one_folder, _ = self.unpack_dir_info |
|
|
|
|
|
|
|
|
# Set options |
|
|
# Set options |
|
|
if self.nzo.password: |
|
|
if self.nzo.correct_password: |
|
|
|
|
|
password_command = "-p%s" % self.nzo.correct_password |
|
|
|
|
|
elif self.nzo.password: |
|
|
password_command = "-p%s" % self.nzo.password |
|
|
password_command = "-p%s" % self.nzo.password |
|
|
else: |
|
|
else: |
|
|
password_command = "-p-" |
|
|
password_command = "-p-" |
|
|