Unrar and post-processing script (New! - March 13')

Discussion of Transmission that doesn't fit in the other categories
Post Reply
OmerBA
Posts: 1
Joined: Sun Mar 03, 2013 7:25 pm

Unrar and post-processing script (New! - March 13')

Post by OmerBA »

Hi!

I've written a script for post-processing transmission torrents based on their type (Movies, TV Shows, Music, Apps.)
I use it together with couchpotato/sickbeard/headphones to fully automate content downloads.

The script will extract files and sort/move them to the pre-configured folders accordigly!

link - https://github.com/omerbenamram/py-expander

To use - just set it in transmission's settings.json as post-processing script.

make sure the python path in the shebang line is correct!
and also that the file is formatted as UNIX/Win accordingly - otherwise Unix might not be able to process the shebang line.

all environmental variables - such as destination folders, are at the config.py file.

pull requests are always welcome :D

Cheers!
Hisma
Posts: 2
Joined: Sun Mar 24, 2013 9:37 am

Re: Unrar and post-processing script (New! - March 13')

Post by Hisma »

Hey!

Just signed up on this site so I can say thank you for this script.

I can confirm it works on freenas 8.3.1.

Great work, keep it up!
Hisma
Posts: 2
Joined: Sun Mar 24, 2013 9:37 am

Re: Unrar and post-processing script (New! - March 13')

Post by Hisma »

Hi again...

One thing I would like to add to this script is the ability to change permissions of the directory the script creates after it unrars the files.

The directory gets created with local permissions, but if I want to modify the directory as an outside guest (such as my windows machine), I have to chmod it.

How much work would it be to add a "chmod 777" for the directory that gets created at the end of the script?
Liquid80
Posts: 4
Joined: Sun Apr 07, 2013 5:09 pm

Re: Unrar and post-processing script (New! - March 13')

Post by Liquid80 »

Hey guys, I'm brand new to this stuff and I would love to have this function with my setup. Could you give me a little help?
Thanks in advance!!!!
BTW I'm on a mac

I changed the destination folders but I'm not sure what else needs to be done to get this script to work. I ran it through Terminal and got:

Traceback (most recent call last):
File "/Users/User1/Apps/py-expander-master/src/torrent_handler.py", line 18, in <module>
import config
File "/Users/User1/Apps/py-expander-master/src/config.py", line 49, in <module>
EXECUTABLE = _find_executable('7z') # Currently only 7z is supported.
File "/Users/User1/Apps/py-expander-master/src/config.py", line 46, in _find_executable
raise Exception(filename + 'not found or is not in system PATH')
Exception: 7znot found or is not in system PATH
Liquid80
Posts: 4
Joined: Sun Apr 07, 2013 5:09 pm

Re: Unrar and post-processing script (New! - March 13')

Post by Liquid80 »

x190 wrote:Maybe you need the following application.

http://osxdaily.com/2010/12/13/open-7z-files-on-a-mac/
I downloaded it but not sure if I need to change any python code. Ran through terminal just to check but no luck. Same result as before. Any other ideas?
Liquid80
Posts: 4
Joined: Sun Apr 07, 2013 5:09 pm

Re: Unrar and post-processing script (New! - March 13')

Post by Liquid80 »

well, i'm simply not knowledgable enough to get this to work on mac. thanks for trying to help x190.
wasykes
Posts: 1
Joined: Tue Apr 01, 2014 9:14 pm

Re: Unrar and post-processing script (New! - March 13')

Post by wasykes »

I too would love to have this running on my synology nas, but really am confused by the first hurdle of trying to install...

If somebody could provide some notes for Dummys on how to install, would be much appreciated.
Post Reply