From fa1e401c884aa77215f001dc9390bde5c55989d2 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Thu, 21 Feb 2013 21:57:25 -0800 Subject: [PATCH] fix unrar on *nix using default unrar --- TorrentToMedia.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index c4b3070e..3e990b56 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -161,8 +161,7 @@ def unpack(dirpath, file, destination): # Using linux elif os.name == 'posix': Logger.info("EXTRACTOR: We are using *nix") - required_cmds=["unrar", "unzip", "tar", "unxz", "unlzma", "7zr"] - EXTRACT_COMMANDS = {".rar": ["unrar", "x -o+ -y"], ".zip": ["unzip", ""], ".tar.gz": ["tar", "xzf"], ".tgz": ["tar", "xzf"], ".tar.bz2": ["tar", "xjf"], ".tbz": ["tar", "xjf"], ".tar.lzma": ["tar", "--lzma xf"], ".tlz": ["tar", "--lzma xf"], ".txz": ["tar", "--xz xf"], ".7z": ["7zr", "x"],} + EXTRACT_COMMANDS = {".rar": ["unrar", "e"], ".zip": ["unzip", ""], ".tar.gz": ["tar", "xzf"], ".tgz": ["tar", "xzf"], ".tar.bz2": ["tar", "xjf"], ".tbz": ["tar", "xjf"], ".tar.lzma": ["tar", "--lzma xf"], ".tlz": ["tar", "--lzma xf"], ".txz": ["tar", "--xz xf"], ".7z": ["7zr", "x"],} # Need to add a check for which commands that can be utilized in *nix systems.. else: