[#2077] [Extractor] Ignore the remaining rar part files

* Bump version to 0.6
This commit is contained in:
Calum Lind 2016-05-31 00:44:30 +01:00
parent cbb7415a18
commit 15a4023208
2 changed files with 6 additions and 1 deletions

View File

@ -145,6 +145,11 @@ class Core(CorePluginBase):
elif file_ext not in EXTRACT_COMMANDS or file_ext_sec == '.tar': elif file_ext not in EXTRACT_COMMANDS or file_ext_sec == '.tar':
log.debug("EXTRACTOR: Can't extract file with unknown file type: %s", f["path"]) log.debug("EXTRACTOR: Can't extract file with unknown file type: %s", f["path"])
continue continue
elif file_ext == ".rar" and "part" in file_ext_sec:
part_num = file_ext_sec.split("part")[1]
if part_num.isdigit() and int(part_num) != 1:
log.debug("Skipping remaining multi-part rar files: %s", f["path"])
continue
cmd = EXTRACT_COMMANDS[file_ext] cmd = EXTRACT_COMMANDS[file_ext]
fpath = os.path.join(tid_status["save_path"], os.path.normpath(f["path"])) fpath = os.path.join(tid_status["save_path"], os.path.normpath(f["path"]))

View File

@ -42,7 +42,7 @@ from setuptools import setup
__plugin_name__ = "Extractor" __plugin_name__ = "Extractor"
__author__ = "Andrew Resch" __author__ = "Andrew Resch"
__author_email__ = "andrewresch@gmail.com" __author_email__ = "andrewresch@gmail.com"
__version__ = "0.5" __version__ = "0.6"
__url__ = "http://deluge-torrent.org" __url__ = "http://deluge-torrent.org"
__license__ = "GPLv3" __license__ = "GPLv3"
__description__ = "Extract files upon torrent completion" __description__ = "Extract files upon torrent completion"